22 lines
545 B
Makefile
22 lines
545 B
Makefile
KDIR :=/mnt/data/kernel/p1010/linux-2.6-cloud
|
|
EXTRA_CFLAGS +=-DUSED_1000M_HZ
|
|
|
|
obj-m := freescale_gian.o
|
|
freescale_gian-y := gianfar.o \
|
|
gianfar_1588.o \
|
|
gianfar_ethtool.o \
|
|
gianfar_sysfs.o
|
|
|
|
all:
|
|
make ARCH=powerpc KBUILD_VERBOSE=1 -C $(KDIR) SUBDIRS=`pwd`
|
|
cp *.ko /mnt/nfs/p1010
|
|
|
|
clean:
|
|
find ./ -name "*.o" -delete
|
|
find ./ -name "*.mod.c" -delete
|
|
find ./ -name "*.o.cmd" -delete
|
|
find ./ -name "*.ko.cmd" -delete
|
|
find ./ -name "*.ko" -delete
|
|
find ./ -name "modules.order" -delete
|
|
find ./ -name "Module.symvers" -delete
|