modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / Makefile
blob2feb6c30129b86a2c3b73e9b2ec7b7c8a5bab9a2
1 PROGS=test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 test12 \
2 test13 test14 test15 test16 test17 test18 test19
3 OBJS=$(patsubst %,%.o,$(PROGS))
5 CFLAGS += -I../include
6 CFLAGS += -g
7 CFLAGS += -Wall -Wextra
8 LDFLAGS += -L.. -lut
10 TEST_TARGET=run_tests
11 TESTS=./do_tests
13 all: $(OBJS) $(PROGS) $(TEST_TARGET)
15 # static pattern rule: multiple targets
17 $(OBJS): %.o: %.c
18 $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
20 $(PROGS): %: %.o
21 $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS)
24 run_tests: $(PROGS)
25 perl $(TESTS)
27 .PHONY: clean
29 clean:
30 rm -f $(PROGS) $(OBJS) test*.out