Home | History | Annotate | Download | only in testcase
      1 test: foo.c foo.h
      2 
      3 foo.c foo.h:
      4 	touch $@
      5 
      6 test2: foo
      7 
      8 CFLAGS=-O
      9 foo: foo.o
     10 	echo cc $(CFLAGS) -o $@ $<
     11 foo.o: CFLAGS=-g
     12 foo.o: foo.h
     13 
     14 %.o: %.c
     15 	echo cc $(CFLAGS) -o $@ -c $<
     16