practice_geomethicMeandian/cpp_impl/Makefile

19 lines
361 B
Makefile
Raw Normal View History

2021-05-01 12:29:05 +00:00
COMMON_FLAGS = -Wall -Wextra -Wpedantic
ifdef DEBUG
CXXFLAGS = $(COMMON_FLAGS) -g -O0
else
CXXFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
endif
all: GeothmeticMeandian
2021-05-01 13:31:59 +00:00
GeothmeticMeandian: src/main.o src/geometric_mean.o src/geothmetic_meandian.o src/helpers.o
2021-05-01 12:29:05 +00:00
$(CXX) $(CXXFLAGS) -o GeothmeticMeandian $^
.PHONY:
clean:
rm -f GeothmeticMeandian
rm -f src/*.o