synthetic tests: add "make clean", make CC settable via env flags.
This commit is contained in:
parent
ad6c82b2ca
commit
c6c17c89c9
|
@ -1,14 +1,21 @@
|
|||
ifndef CC
|
||||
CC=gcc
|
||||
endif
|
||||
|
||||
|
||||
all: controlflow.o data.o functions.o uninit.o
|
||||
|
||||
controlflow.o: controlflow.c
|
||||
gcc -c controlflow.c
|
||||
$(CC) -c controlflow.c
|
||||
|
||||
data.o: data.c
|
||||
gcc -c data.c
|
||||
$(CC) -c data.c
|
||||
|
||||
functions.o: functions.c
|
||||
gcc -c functions.c
|
||||
$(CC) -c functions.c
|
||||
|
||||
uninit.o: uninit.c
|
||||
gcc -std=gnu99 -c uninit.c
|
||||
$(CC) -std=gnu99 -c uninit.c
|
||||
|
||||
clean:
|
||||
rm -rf controlflow.o data.o functions.o uninit.o
|
||||
|
|
Loading…
Reference in New Issue