Archived
1
0

add test target in main makefile

This commit is contained in:
Jeff Becker
2017-09-24 08:18:56 -04:00
parent dee8c005fd
commit 69fac43124
5 changed files with 21 additions and 7 deletions

View File

@@ -42,10 +42,10 @@ $(TOOLS): $(TOOL_SRC)
$(CXX) $(CXXFLAGS) $< $(LIB) $(LD_FLAGS) -o $@
build-test: $(LIB)
$(CXX) -o test $(CXXFLAGS) test.cpp $(LIB) $(LD_FLAGS)
$(CXX) -o $(REPO)/test $(CXXFLAGS) test.cpp $(LIB) $(LD_FLAGS)
test: build-test
./test
$(REPO)/test
%.o: src/%.cpp
$(CXX) $(CXXFLAGS) -c -o $@