You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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