equal
  deleted
  inserted
  replaced
  
    
    
|      3 # and the sources resides, you can use the make command with  |      3 # and the sources resides, you can use the make command with  | 
|      4 # following parmeters: |      4 # following parmeters: | 
|      5 # $make 	  generates the executable me8100_test_dio |      5 # $make 	  generates the executable me8100_test_dio | 
|      6 # $make clean     deletes all files including *.o and *~  |      6 # $make clean     deletes all files including *.o and *~  | 
|      7  |      7  | 
|      8 me8100_test_dio:me8100_test_dio.o |      8 # KERNEL_DIR should be set in environment. | 
|      9 	gcc -o me8100_test_dio me8100_test_dio.o  |      9 CPPFLAGS += -I.. -I$(KERNEL_DIR)/include | 
|         |     10 CFLAGS += -Wall -O | 
|     10  |     11  | 
|     11 me8100_test_dio.o:me8100_test_dio.c ../me8100.h |     12 bin_PROGRAMS = me8100_test_dio wtest rtest | 
|     12 	gcc -c me8100_test_dio.c -Wall -O |     13  | 
|         |     14 .PHONY:	all clean | 
|         |     15  | 
|         |     16 all: $(bin_PROGRAMS) | 
|         |     17  | 
|         |     18 # Dependencies | 
|         |     19 me8100_test_dio.o: me8100_test_dio.c ../me8100.h | 
|         |     20 rtest.o: rtest.c ../me8100.h  | 
|         |     21 wtest.o: rtest.c ../me8100.h | 
|     13  |     22  | 
|     14 clean: |     23 clean: | 
|     15 	rm -f *.o *~ |     24 	rm -f core *.o *~ $(bin_PROGRAMS) |