summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk10
1 files changed, 2 insertions, 8 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 9d0e6e6d5..dc811e021 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -34,9 +34,8 @@ CC = @CC@
SYSTEM = @SYSTEM@
BUILDPATH = @BUILD_DIR@
SOCKETENGINE = @SOCKETENGINE@
-CXXFLAGS = -pipe -fPIC -DPIC
+CXXFLAGS = -fPIC -pipe -Iinclude -Wall -Wextra -Wfatal-errors -Wno-unused-parameter -Wshadow
LDLIBS = -pthread -lstdc++
-LDFLAGS =
CORELDFLAGS = -rdynamic -L. $(LDFLAGS)
PICLDFLAGS = -fPIC -shared -rdynamic $(LDFLAGS)
BASE = "$(DESTDIR)@BASE_DIR@"
@@ -51,12 +50,10 @@ INSTMODE_BIN = 0755
INSTMODE_LIB = 0644
@IFEQ $(CC) icc
- CXXFLAGS += -Wshadow
@ELSE
- CXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall
+ CXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute
@ENDIF
-
@IFEQ $(SYSTEM) linux
LDLIBS += -ldl -lrt
@ENDIF
@@ -71,7 +68,6 @@ INSTMODE_LIB = 0644
INSTALL = ginstall
@ENDIF
@IFEQ $(SYSTEM) darwin
- CXXFLAGS += -DDARWIN -frtti
LDLIBS += -ldl
CORELDFLAGS = -dynamic -bind_at_load -L. $(LDFLAGS)
PICLDFLAGS = -fPIC -shared -twolevel_namespace -undefined dynamic_lookup $(LDFLAGS)
@@ -102,8 +98,6 @@ DBGOK=0
@ENDIF
FOOTER = finishmessage
-CXXFLAGS += -Iinclude
-
@GNU_ONLY MAKEFLAGS += --no-print-directory
@GNU_ONLY SOURCEPATH = $(shell /bin/pwd)