practice_geomethicMeandian/cpp_impl/Makefile
2021-05-01 22:31:59 +09:00

18 lines
361 B
Makefile

COMMON_FLAGS = -Wall -Wextra -Wpedantic
ifdef DEBUG
CXXFLAGS = $(COMMON_FLAGS) -g -O0
else
CXXFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
endif
all: GeothmeticMeandian
GeothmeticMeandian: src/main.o src/geometric_mean.o src/geothmetic_meandian.o src/helpers.o
$(CXX) $(CXXFLAGS) -o GeothmeticMeandian $^
.PHONY:
clean:
rm -f GeothmeticMeandian
rm -f src/*.o