obj-m := hello.o
# helloworld-objs := hello1.o hello2.o hello3.o //for multi files
KERNELDIR := /home/crazytyt/linux-2.6.31/
CC = arm-linux-gcc
HOSTCC = gcc
export CC HOSTCC
default:
$(MAKE) -C $(KERNELDIR) M=$(shell pwd) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(shell pwd) clean
阅读(888) | 评论(0) | 转发(0) |