mirror of
https://github.com/troydhanson/tpl.git
synced 2024-12-26 23:57:25 +08:00
22 lines
267 B
Makefile
22 lines
267 B
Makefile
SRCDIR=../../src
|
|
CPPFLAGS = -I$(SRCDIR)
|
|
|
|
PROGS = other1
|
|
all: $(PROGS) run_tests
|
|
|
|
tpl.c:
|
|
cp $(SRCDIR)/tpl.c .
|
|
|
|
other1: other1.o tpl.o
|
|
g++ -o other1 other1.o tpl.o
|
|
|
|
|
|
.PHONY: clean run_tests
|
|
|
|
clean:
|
|
rm -f *.o $(PROGS) *.out
|
|
rm -f tpl.c
|
|
|
|
run_tests:
|
|
perl ./do_tests
|