changes
[model-checker-benchmarks.git] / linuxrwlocks / Makefile
index d66ada32861570347b3c6a9d40c2cdd99190a36c..8a436359fd8e56c2da00bbcdbdd7afa6f0e4dc10 100644 (file)
@@ -1,11 +1,14 @@
 include ../benchmarks.mk
 
 TESTNAME = linuxrwlocks
+WILDCARD_TESTS = testcase1 testcase2 testcase_full
+all: $(TESTNAME) $(WILDCARD_TESTS)
 
-all: $(TESTNAME)
+$(TESTNAME): $(TESTNAME).c $(TESTNAME).h
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
 
-$(TESTNAME): $(TESTNAME).c
-       $(CC) -o $@ $< $(CPPFLAGS) $(LDFLAGS)
+$(WILDCARD_TESTS): % : %.c $(TESTNAME)-wildcard.h
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
 
 clean:
-       rm -f $(TESTNAME) *.o
+       rm -f $(TESTNAME) *.o $(WILDCARD_TESTS)