您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Makefile 489B

1234567891011121314151617181920
  1. GCC = gcc
  2. KERNELDIR = ../linux-2.4.20
  3. KERNELSTYLE=-D__KERNEL__ -DCPU=__i386__ -DMODULE
  4. INCLUDE_DIR=-I$(KERNELDIR)/include -I../include -I$(ROOTDIR)/include
  5. all: dp83820flash.o dp83820_write
  6. CFLAGS+=-O2 -Wall -fomit-frame-pointer -fno-strength-reduce
  7. CFLAGS+=$(KERNELSTYLE) $(CDEBUG) $(INCLUDE_DIR)
  8. install:
  9. dp83820flash.o: dp83820flash.c
  10. $(GCC) dp83820flash.c -o dp83820flash.o -c $(CFLAGS)
  11. dp83820_write: dp83820_write.c
  12. $(GCC) $< -o $@ -Wall -O2
  13. clean:
  14. $(RM) *.o dp83820_write