Fix to Makefile

This commit is contained in:
Stephen Seo 2024-04-16 20:38:34 +09:00
parent c99a2dceb0
commit f05103d871

View file

@ -21,7 +21,7 @@ OBJECTS = $(addprefix ${OBJDIR}/,$(patsubst %.cpp,%.cpp.o,${SOURCES}))
all: KoreanNumbers all: KoreanNumbers
KoreanNumbers: ${OBJECTS} KoreanNumbers: ${OBJECTS}
$(CXX) $(CXXFLAGS) -o KoreanNumbers $^ $(CXX) $(CXXFLAGS) -fPIE -pie -o KoreanNumbers $^
${OBJDIR}/%.cpp.o: %.cpp ${OBJDIR}/%.cpp.o: %.cpp
@mkdir -p $(dir $@) @mkdir -p $(dir $@)