synthetic tests: add "make clean", make CC settable via env flags.

This commit is contained in:
Matthias Krüger 2016-11-02 19:02:10 +01:00
parent ad6c82b2ca
commit c6c17c89c9
1 changed files with 11 additions and 4 deletions

View File

@ -1,14 +1,21 @@
ifndef CC
CC=gcc
endif
all: controlflow.o data.o functions.o uninit.o all: controlflow.o data.o functions.o uninit.o
controlflow.o: controlflow.c controlflow.o: controlflow.c
gcc -c controlflow.c $(CC) -c controlflow.c
data.o: data.c data.o: data.c
gcc -c data.c $(CC) -c data.c
functions.o: functions.c functions.o: functions.c
gcc -c functions.c $(CC) -c functions.c
uninit.o: uninit.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