--- a/me8100_test_int/Makefile Wed Jan 16 14:02:54 2002 +0100
+++ b/me8100_test_int/Makefile Wed Jan 16 15:54:58 2002 +0100
@@ -5,11 +5,18 @@
# $make generates the executable me8100_test_int
# $make clean deletes all files including *.o and *~
-me8100_test_int:me8100_test_int.o
- gcc -o me8100_test_int me8100_test_int.o
+# KERNEL_DIR should be set in environment
+CPPFLAGS += -I.. -I$(KERNEL_DIR)/include
+CFLAGS += -O -Wall
+
+bin_PROGRAMS = me8100_test_int test
-me8100_test_int.o:me8100_test_int.c ../me8100.h
- gcc -c me8100_test_int.c -Wall -O
+.PHONY: all clean
+
+all: $(bin_PROGRAMS)
+
+me8100_test_int.o: me8100_test_int.c ../me8100.h
+test.o: test.c ../me8100.h
clean:
- rm -f *.o *~
\ No newline at end of file
+ rm -f core *.o *~ $(bin_PROGRAMS)