aboutsummaryrefslogtreecommitdiff
path: root/src/test/Makefile
blob: 422cc03051822c1aa810c11ab3496437a6d4673b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
override LDFLAGS += -lcppunit ../lib/libbible.so
SOURCES = $(wildcard *.cc)
OBJECTS = $(SOURCES:.cc=.o)
DEPS = $(OBJECTS:.o=.d)
TEST = testLibbible

$(TEST): $(OBJECTS)
	$(CXX) $^ -o $@ $(LDFLAGS)

-include $(DEPS)

.PHONY: test
test: $(TEST)
	./$(TEST)

.PHONY: clean
clean:
	$(RM) $(OBJECTS) $(DEPS) $(TEST)