1TPLSRC = ../../src 2PROGS = test1 3 4# Thread support requires compiler-specific options 5# ---------------------------------------------------------------------------- 6# GNU 7CFLAGS = -I$(TPLSRC) -g -pthread 8# Solaris (Studio 11 on Sparc Ultra3) 9#CFLAGS = -I$(TPLSRC) -g -mt 10# ---------------------------------------------------------------------------- 11 12all: $(PROGS) run_tests 13 14tpl.o : $(TPLSRC)/tpl.c $(TPLSRC)/tpl.h 15 $(CC) -c $(CFLAGS) $(TPLSRC)/tpl.c 16 17$(PROGS) : tpl.o 18 $(CC) $(CFLAGS) -o $@ $(@).c tpl.o 19 20run_tests: $(PROGS) 21 perl ../do_tests 22 23.PHONY: clean 24 25clean: 26 rm -f $(PROGS) tpl.o test*.out 27