- 论坛徽章:
- 0
|
我的makefile是这么写的:
内核的源码在/home/juer/src/linux-2.6.25.16里面
PWD=$(shell pwd)
KERNEL_SRC=/home/juer/src/linux-2.6.25.16
obj-m :=ip46natForTest.o
module-objs :=ip46natForTest.o
all:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules
clean:
rm *.ko
rm *.o
报错:
root@juer:/home/juer/ip46natForTest# make
make: Warning: File `Makefile' has modification time 5.3e+04 s in the future
make -C /lib/modules/2.6.25.16juer/build M=/home/juer/ip46natForTest modules
make[1]: Entering directory `/home/juer/src/linux-2.6.25.16'
make[2]: Warning: File `/home/juer/ip46natForTest/Makefile' has modification time 5.3e+04 s in the future
make[2]: *** No rule to make target `/home/juer/ip46natForTest/ip46natForTest.c', needed by `/home/juer/ip46natForTest/ip46natForTest.o'. Stop.
make[1]: *** [_module_/home/juer/ip46natForTest] Error 2
make[1]: Leaving directory `/home/juer/src/linux-2.6.25.16'
make: *** [default] Error 2
希望高手来指点下 |
|