分类:
2008-11-02 21:14:10
其实是一样的,关键要自己清楚各依赖关系。
KERNELDIR = ../kernel/linux-2.4.20_mvl31
#Compile tool
CROSS_COMPILE = arm-linux-uclibc-
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
STRIP = $(CROSS_COMPILE)strip -g -S
CFLAGS = -g -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include
CFLAGS += -O
.SILENT: dist
mac.o : mac.c
$(CC) -c $(CFLAGS) $< -o $@
$(STRIP) $@
clean:
rm -rf *.o *.ko