2020-10-29 13:03:26 +00:00
|
|
|
COMMON_CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++20
|
2020-10-29 04:22:26 +00:00
|
|
|
ifdef DEBUG
|
2024-04-16 09:42:16 +00:00
|
|
|
CXXFLAGS = -Og -g ${COMMON_CXXFLAGS}
|
2020-10-29 04:22:26 +00:00
|
|
|
else
|
|
|
|
CXXFLAGS = -O3 ${COMMON_CXXFLAGS}
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: KoreanNumbers
|
|
|
|
|
|
|
|
KoreanNumbers: src/main.o
|
|
|
|
$(CXX) $(CXXFLAGS) -o KoreanNumbers $^
|
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f KoreanNumbers
|
|
|
|
rm -f src/*.o
|