options/Makefile

21 lines
382 B
Makefile

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