- permit CFLAGS, CXXFLAGS, LDFLAGS to be set in Makefile

git-svn-id: http://moon:8086/svn/software/trunk/make@906 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-01 08:19:43 +00:00
parent c3a4e19723
commit 17c955a7cd
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
CXXFLAGS_debug := -g -O0
CXXFLAGS_release := -O2
CXXFLAGS_debug += -g -O0
CXXFLAGS_release += -O2
CXXFLAGS += ${CXXFLAGS_${CONFIG}}
CFLAGS_debug := -g -O0
CFLAGS_release :=- O2
CFLAGS_debug += -g -O0
CFLAGS_release +=- O2
CFLAGS += ${CFLAGS_${CONFIG}}
CXX_OBJS := $(addprefix ${BUILD_DIR}/, $(subst .cpp,.o,$(CXX_SRCS)))
+2 -2
View File
@@ -1,7 +1,7 @@
-include $(DEPS)
LDFLAGS_release :=
LDFLAGS_debug := -g
LDFLAGS_release +=
LDFLAGS_debug += -g
LDFLAGS += ${LFLAGS_${CONFIG}}
${BUILD_DIR}/${TARGET}: ${OBJS} $(BUILD_DIR)