me8100_test_int/Makefile
changeset 3 fc24e3b47731
parent 0 c9b8efdb5369
equal deleted inserted replaced
2:3345048104fc 3:fc24e3b47731
     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_int
     5 # $make 	  generates the executable me8100_test_int
     6 # $make clean     deletes all files including *.o and *~ 
     6 # $make clean     deletes all files including *.o and *~ 
     7 
     7 
     8 me8100_test_int:me8100_test_int.o
     8 # KERNEL_DIR should be set in environment
     9 	gcc -o me8100_test_int me8100_test_int.o 
     9 CPPFLAGS += -I.. -I$(KERNEL_DIR)/include
       
    10 CFLAGS += -O -Wall
    10 
    11 
    11 me8100_test_int.o:me8100_test_int.c ../me8100.h
    12 bin_PROGRAMS = me8100_test_int test
    12 	gcc -c me8100_test_int.c -Wall -O
    13 
       
    14 .PHONY:	all clean
       
    15 
       
    16 all:	$(bin_PROGRAMS)
       
    17 
       
    18 me8100_test_int.o: me8100_test_int.c ../me8100.h
       
    19 test.o:	test.c ../me8100.h
    13 
    20 
    14 clean:
    21 clean:
    15 	rm -f *.o *~
    22 	rm -f core *.o *~ $(bin_PROGRAMS)