From 26e15e70983dd64942e338b81fc6f6f197ef3c36 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 May 2016 04:47:06 +0000 Subject: [PATCH] Makefile: Rename "CPPONLYFLAGS" variable to "CXXONLYFLAGS", since "CPPFLAGS" traditionaly refers to the C preprocessor, not C++. git-svn-id: https://svn.eduke32.com/eduke32@5750 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile | 10 +++++----- polymer/eduke32/Makefile.common | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/polymer/eduke32/Makefile b/polymer/eduke32/Makefile index 1725870f8..3e94fc03a 100644 --- a/polymer/eduke32/Makefile +++ b/polymer/eduke32/Makefile @@ -578,7 +578,7 @@ makesdlkeytrans$(EXESUFFIX): $(ENGINE_OBJ)/makesdlkeytrans.$o $(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(SDL_INCLUDES) $(RECIPE_RESULT_ONESTEP) arttool$(EXESUFFIX): $(ENGINE_OBJ)/arttool.$o $(ONESTEP_STATUS) - $(RECIPE_IF) $(L_CXX) $(CPPONLYFLAGS) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(STDCPPLIB) $(RECIPE_RESULT_ONESTEP) + $(RECIPE_IF) $(L_CXX) $(CXXONLYFLAGS) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(STDCPPLIB) $(RECIPE_RESULT_ONESTEP) #### Lunatic @@ -642,7 +642,7 @@ $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.m | $(ENGINE_OBJ) $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.cpp | $(ENGINE_OBJ) $(COMPILE_STATUS) - $(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) + $(RECIPE_IF) $(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/misc/%.c | $(ENGINE_OBJ) $(COMPILE_STATUS) @@ -654,11 +654,11 @@ $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.c | $(ENGINE_OBJ) $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.cpp | $(ENGINE_OBJ) $(COMPILE_STATUS) - $(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) + $(RECIPE_IF) $(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) $(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.cc | $(ENGINE_OBJ) $(COMPILE_STATUS) - $(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) + $(RECIPE_IF) $(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) $(ENGINE_OBJ)/%.$o: $(DUKE3D_RSRC)/%.c | $(ENGINE_OBJ) $(COMPILE_STATUS) @@ -714,7 +714,7 @@ $(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.m | $(DUKE3D_OBJ) $(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.cpp | $(DUKE3D_OBJ) $(COMPILE_STATUS) - $(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) + $(RECIPE_IF) $(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE) $(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/misc/%.rc | $(DUKE3D_OBJ) $(COMPILE_STATUS) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index 4a94a4982..b5b3d221e 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -277,7 +277,7 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10) endif CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration -CPPONLYFLAGS= -fno-exceptions -fno-rtti +CXXONLYFLAGS= -fno-exceptions -fno-rtti ASFORMAT=elf$(SYSBITS) ASFLAGS=-s -f $(ASFORMAT) #-g LINKERFLAGS= @@ -1090,7 +1090,7 @@ COMPILER=$(CC) $(CONLYFLAGS) COMPILER_OBJC=$(COBJC) $(CONLYFLAGS) LINKER=$(L_CC) ifneq ($(CPLUSPLUS),0) - COMPILER=$(CXX) $(CPPONLYFLAGS) + COMPILER=$(CXX) $(CXXONLYFLAGS) LINKER=$(L_CXX) endif @@ -1101,7 +1101,7 @@ ifneq (,$(CFLAGS)) COMMONFLAGS+= $(CFLAGS) endif ifneq (,$(CXXFLAGS)) - CPPONLYFLAGS+= $(CXXFLAGS) + CXXONLYFLAGS+= $(CXXFLAGS) endif ifneq (,$(LDFLAGS)) LINKERFLAGS+= $(LDFLAGS)