options/Makefile

21 lines
382 B
Makefile
Raw Normal View History

2019-08-08 17:54:29 +00:00
CXXFLAGS += -std=c++17 -Wall -Wextra -Wdocumentation
BUILD = build
$(info $(shell mkdir -p $(BUILD)))
$(BUILD)/%: %.cpp
$(CXX) $(CXXFLAGS) $< -o $@
.PHONY: main test
# Build demonstration application
main: $(BUILD)/main
# Run unit tests
test: $(BUILD)/tests
./$(BUILD)/tests
valgrind $(BUILD)/tests
$(BUILD)/main: main.cpp options.hpp
$(BUILD)/tests: tests.cpp options.hpp