From c6c17c89c99985412027669a874afb21facdfafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 2 Nov 2016 19:02:10 +0100 Subject: [PATCH] synthetic tests: add "make clean", make CC settable via env flags. --- test/synthetic/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/synthetic/Makefile b/test/synthetic/Makefile index 780ec2ae0..31eaa191d 100644 --- a/test/synthetic/Makefile +++ b/test/synthetic/Makefile @@ -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