2021-05-10 06:21:18 +00:00
|
|
|
COMMON_FLAGS = -Wall -Wextra -Wpedantic -std=c++17
|
2021-05-10 05:16:10 +00:00
|
|
|
ifdef DEBUG
|
|
|
|
CXXFLAGS = $(COMMON_FLAGS) -O0 -g
|
|
|
|
else
|
|
|
|
CXXFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
src/main.o \
|
2021-05-10 06:15:33 +00:00
|
|
|
src/helpers.o
|
2021-05-10 05:16:10 +00:00
|
|
|
|
|
|
|
all: GreedyTextJustification
|
|
|
|
|
|
|
|
GreedyTextJustification: $(OBJECTS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o GreedyTextJustification $^
|
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f GreedyTextJustification
|
|
|
|
rm -f src/*.o
|