Browse Source

revert cxxflags

lotus 2 months ago
parent
commit
f26e386433
2 changed files with 8 additions and 8 deletions
  1. 5 5
      .boil/make/makefile-c
  2. 3 3
      .boil/make/makefile-cpp

+ 5 - 5
.boil/make/makefile-c

@@ -11,7 +11,7 @@ LDLIBS=-L$(PREFIX)/lib
 
 all: boil
 
-debug: CFLAGS += -O0 -ggdb -save-temps
+debug: CFLAGS += -O0 -g -save-temps
 debug: clean boil
 
 opt: CFLAGS += --pipe -O2 -fpie -march=native -fstack-protector-strong
@@ -21,11 +21,11 @@ opt: clean boil
 boil: boil-1.o boil-2.o
 	$(CC) $(LDFLAGS) -o boil boil-1.o boil-2.o $(LDLIBS)
 
-boil-1.o: boil-1.cpp
-	$(CC) $(CFLAGS) $(LDFLAGS) $(CFLAGS) -c boil-1.cpp
+boil-1.o: boil-1.c
+	$(CC) $(LDFLAGS) $(CFLAGS) -c boil-1.c
 
-boil-2.o: boil-2.cpp
-	$(CC) $(CFLAGS) $(LDFLAGS) $(CFLAGS) -c boil-2.cpp
+boil-2.o: boil-2.c
+	$(CC) $(LDFLAGS) $(CFLAGS) -c boil-2.c
 
 clean:
 	$(RM) *.o *.s *.ii

+ 3 - 3
.boil/make/makefile-cpp

@@ -11,7 +11,7 @@ LDLIBS=-L$(PREFIX)/lib
 
 all: boil
 
-debug: CXXFLAGS += -O0 -ggdb -save-temps
+debug: CXXFLAGS += -O0 -g -save-temps
 debug: clean boil
 
 opt: CXXFLAGS += --pipe -O2 -fpie -march=native -fstack-protector-strong
@@ -22,10 +22,10 @@ boil: boil-1.o boil-2.o
 	$(CXX) $(LDFLAGS) -o boil boil-1.o boil-2.o $(LDLIBS)
 
 boil-1.o: boil-1.cpp
-	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) -c boil-1.cpp
+	$(CXX) $(LDFLAGS) $(CXXFLAGS) -c boil-1.cpp
 
 boil-2.o: boil-2.cpp
-	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) -c boil-2.cpp
+	$(CXX) $(LDFLAGS) $(CXXFLAGS) -c boil-2.cpp
 
 clean:
 	$(RM) *.o *.s *.ii