2 KERNELDIR
= ..
/linux-2.4
.20
3 KERNELSTYLE
=-D__KERNEL__
-DCPU
=__i386__
-DMODULE
4 INCLUDE_DIR
=-I
$(KERNELDIR
)/include -I..
/include -I
$(ROOTDIR
)/include
6 all: dp83820flash.o dp83820_write
8 CFLAGS
+=-O2
-Wall
-fomit-frame-pointer
-fno-strength-reduce
9 CFLAGS
+=$(KERNELSTYLE
) $(CDEBUG
) $(INCLUDE_DIR
)
13 dp83820flash.o
: dp83820flash.c
14 $(GCC
) dp83820flash.c
-o dp83820flash.o
-c
$(CFLAGS
)
16 dp83820_write
: dp83820_write.c
17 $(GCC
) $< -o
$@
-Wall
-O2
20 $(RM
) *.o dp83820_write