MakeTemplates/cxx/Makefile

19 lines
222 B
Makefile
Raw Normal View History

2021-11-21 17:06:20 +00:00
include config.mk
OBJ = ${SRC:.cpp=.o}
all: ${OBJ} ${OUT}
2021-11-21 17:06:20 +00:00
%.o: %.cpp
2023-12-08 19:58:57 +00:00
${CXX} $< -c ${CXXFLAGS} -o "$@"
2021-11-21 17:06:20 +00:00
clean:
rm -f ${OBJ} ${OUT}
2021-11-21 17:06:20 +00:00
ifneq (${OUT},)
${OUT}: ${OBJ}
2023-12-08 19:58:57 +00:00
${CXX} $^ ${LDFLAGS} -o "$@"
2021-11-21 17:06:20 +00:00
endif
.PHONY: all clean