Remove default debugging flags from Makefile

This commit is contained in:
Thraix
2020-03-01 21:02:59 +01:00
parent f2afec473f
commit a36f245f37
4 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# This Makefile was generated using MakeGen v1.3.2 made by Tim Håkansson # This Makefile was generated using MakeGen v1.3.3 made by Tim Håkansson
# and is licensed under MIT. Full source of the project can be found at # and is licensed under MIT. Full source of the project can be found at
# https://github.com/Thraix/MakeGen # https://github.com/Thraix/MakeGen
CC=@g++ CC=@g++
@@ -8,7 +8,7 @@ BIN=bin/
OBJPATH=$(BIN)intermediates OBJPATH=$(BIN)intermediates
INCLUDES= INCLUDES=
OBJECTS=$(OBJPATH)/ConfigCLI.o $(OBJPATH)/ConfigFile.o $(OBJPATH)/HFileGen.o $(OBJPATH)/IncludeDeps.o $(OBJPATH)/Makefile.o $(OBJPATH)/Utils.o $(OBJPATH)/ConfigFileConf.o $(OBJPATH)/main.o $(OBJPATH)/XML.o $(OBJPATH)/XMLObject.o OBJECTS=$(OBJPATH)/ConfigCLI.o $(OBJPATH)/ConfigFile.o $(OBJPATH)/HFileGen.o $(OBJPATH)/IncludeDeps.o $(OBJPATH)/Makefile.o $(OBJPATH)/Utils.o $(OBJPATH)/ConfigFileConf.o $(OBJPATH)/main.o $(OBJPATH)/XML.o $(OBJPATH)/XMLObject.o
CFLAGS=$(INCLUDES) -std=c++17 -c -w -g3 CFLAGS=$(INCLUDES) -std=c++17 -c -D_DEBUG -g3 -w
LIBDIR= LIBDIR=
LDFLAGS= LDFLAGS=
LIBS=$(LIBDIR) LIBS=$(LIBDIR)
+4 -2
View File
@@ -10,6 +10,8 @@
</configuration> </configuration>
<configuration name="Debug"> <configuration name="Debug">
<define>_DEBUG</define> <define>_DEBUG</define>
<cflag>-g3</cflag>
<cflag>-w</cflag>
<generatehfile>false</generatehfile> <generatehfile>false</generatehfile>
<hfilename>MakeGen.h</hfilename> <hfilename>MakeGen.h</hfilename>
<outputdir>bin/</outputdir> <outputdir>bin/</outputdir>
@@ -18,6 +20,6 @@
<projectname>MakeGen</projectname> <projectname>MakeGen</projectname>
<srcdir>src/</srcdir> <srcdir>src/</srcdir>
</configuration> </configuration>
<target>Release</target> <target>Debug</target>
<version>v1.3.2</version> <version>v1.3.3</version>
</makegen> </makegen>
+1 -1
View File
@@ -12,7 +12,7 @@
// Release, should be backwards compatible with any minor version // Release, should be backwards compatible with any minor version
#define MAKEGEN_VERSION_RELEASE 3 #define MAKEGEN_VERSION_RELEASE 3
// Minor changes, generally bug fixes // Minor changes, generally bug fixes
#define MAKEGEN_VERSION_MINOR 2 #define MAKEGEN_VERSION_MINOR 3
#define MAKEGEN_VERSION ("v" STR(MAKEGEN_VERSION_MAJOR) "." STR(MAKEGEN_VERSION_RELEASE) "." STR(MAKEGEN_VERSION_MINOR)) #define MAKEGEN_VERSION ("v" STR(MAKEGEN_VERSION_MAJOR) "." STR(MAKEGEN_VERSION_RELEASE) "." STR(MAKEGEN_VERSION_MINOR))
+2 -2
View File
@@ -51,11 +51,11 @@ void Makefile::Save(ConfigFile& conf, unsigned int flags)
outputFile << std::endl; outputFile << std::endl;
if(outputtype == "executable" || outputtype != "sharedlibrary") if(outputtype == "executable" || outputtype != "sharedlibrary")
{ {
outputFile << "CFLAGS=$(INCLUDES) -std=c++17 -c -w -g3 "; outputFile << "CFLAGS=$(INCLUDES) -std=c++17 -c ";
} }
else else
{ {
outputFile << "CFLAGS=$(INCLUDES) -fPIC -std=c++17 -c -w -g3 "; outputFile << "CFLAGS=$(INCLUDES) -fPIC -std=c++17 -c ";
} }
std::vector<std::string>& defines = conf.GetSettingVectorString(ConfigSetting::Define); std::vector<std::string>& defines = conf.GetSettingVectorString(ConfigSetting::Define);
for(auto it = defines.begin(); it != defines.end(); ++it) for(auto it = defines.begin(); it != defines.end(); ++it)