Commit f2d3c740 authored by Michael Ott's avatar Michael Ott

Move CXXFLAGS definitions to config.mk and thus streamline compiler flags for...

Move CXXFLAGS definitions to config.mk and thus streamline compiler flags for all Makefiles in subdirectories
parent 867b7882
include ../config.mk
include ../common.mk
#include ../common.mk
CXXFLAGS = -std=c++11 -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_NETWORK_ENABLE_HTTPS -O2 -g -Wall -Wno-unused-function -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-variable -DBOOST_LOG_DYN_LINK -I../common/include -I$(DCDBDEPLOYPATH)/include -DVERSION=\"$(VERSION)\"
CXXFLAGS += -DBOOST_NETWORK_ENABLE_HTTPS -I../common/include -I$(DCDBDEPLOYPATH)/include
LIBS = -L../lib -L$(DCDBDEPLOYPATH)/lib/ -ldl -lboost_system -lboost_thread -lboost_log_setup -lboost_log -lboost_regex -lpthread -rdynamic
ANALYZERS = aggregator
......
include ../config.mk
CXXFLAGS = -O2 -g --std=c++11 -Wall \
-Wno-unused-function -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unknown-warning-option \
-fmessage-length=0 \
-I../common/include/ \
CXXFLAGS += -I../common/include/ \
-I../lib/include \
-I$(DCDBDEPLOYPATH)/include \
-I$(DCDBDEPSPATH)/cpp-netlib-0.12.0-final/deps/asio/asio/include \
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_LOG_DYN_LINK \
-DVERSION=\"$(VERSION)\"
-I$(DCDBDEPSPATH)/cpp-netlib-0.12.0-final/deps/asio/asio/include
OBJS = ../common/src/logging.o \
../analytics/AnalyticsManager.o \
......
......@@ -6,4 +6,5 @@ DEFAULT_VERSION = 0.3
GIT_VERSION = $(shell git describe --tags 2>/dev/null|sed 's/-\([0-9]*\)/.\1/')
VERSION := $(if $(GIT_VERSION),$(GIT_VERSION),$(DEFAULT_VERSION))
CXXFLAGS = -std=c++11 -O2 -g -Wall -fmessage-length=0 -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_LOG_DYN_LINK -DVERSION=\"$(VERSION)\"
OS = $(shell uname -s)
include ../config.mk
include ../common.mk
CXXFLAGS = -std=c++11 -O2 -g -Wall \
-Wno-unused-function -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-variable \
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_LOG_DYN_LINK -DBOOST_NETWORK_ENABLE_HTTPS \
CXXFLAGS += -DBOOST_NETWORK_ENABLE_HTTPS \
-I../common/include \
-I$(DCDBDEPLOYPATH)/include \
-DVERSION=\"$(VERSION)\"
-I$(DCDBDEPLOYPATH)/include
LIBS = -L../lib \
-L$(DCDBDEPLOYPATH)/lib/ \
......
include ../config.mk
# C++ Compiler Flags (use fPIC for our dynamic library)
CXXFLAGS = -O2 -ggdb -Wall -Werror \
-fPIC --std=c++11 -I./include -I./include_internal -I$(DCDBDEPLOYPATH)/include \
-I../common/include/ -fmessage-length=0 -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG \
-Wno-unused-local-typedef -Wno-unknown-warning-option -Wno-unknown-warning \
-Wno-deprecated-declarations -DVERSION=\"$(VERSION)\"
CXXFLAGS += -Werror -fPIC -I./include -I./include_internal -I$(DCDBDEPLOYPATH)/include -I../common/include/
# List of object files to build and the derived list of corresponding source files
OBJS = src/connection.o \
......
include ../../config.mk
CXXFLAGS = -O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unknown-warning-option -fmessage-length=0 -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include -DVERSION=\"$(VERSION)\"
CXXFLAGS += -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include
OBJS = dcdbconfig.o sensoraction.o dbaction.o useraction.o
LIBS = -L../../lib -L$(DCDBDEPLOYPATH)/lib -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lboost_regex -lssl -lcrypto
# GCC 4.8 is broken
......
include ../../config.mk
CXXFLAGS = -O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-unknown-warning-option -fmessage-length=0 -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DVERSION=\"$(VERSION)\"
CXXFLAGS += -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include
OBJS = dcdbcsvimport.o
LIBS = -L../../lib -L$(DCDBDEPLOYPATH)/lib -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lboost_regex -lssl -lcrypto -lpthread
TARGET = dcdbcsvimport
......
include ../../config.mk
CXXFLAGS = -O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unknown-warning-option -fmessage-length=0 -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DVERSION=\"$(VERSION)\"
CXXFLAGS += -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include
OBJS = dcdbquery.o query.o
LIBS = -L../../lib -L$(DCDBDEPLOYPATH)/lib -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lboost_regex -lssl -lcrypto
TARGET = dcdbquery
......
include ../../config.mk
CXXFLAGS = -O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-unknown-warning-option -Wno-unknown-warning -fmessage-length=0 -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DVERSION=\"$(VERSION)\"
CXXFLAGS += -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include
OBJS = dcdbquerysum.o
LIBS = -L../../lib -L$(DCDBDEPLOYPATH)/lib -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lboost_regex -lssl -lcrypto
TARGET = dcdbquerysum
......
include ../../config.mk
CXXFLAGS = -O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-unknown-warning-option -fmessage-length=0 -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DVERSION=\"$(VERSION)\"
CXXFLAGS += -I../../common/include/ -I../../lib/include -I$(DCDBDEPLOYPATH)/include
OBJS = dcdbunitconv.o
LIBS = -L../../lib -L$(DCDBDEPLOYPATH)/lib -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lboost_regex -lssl -lcrypto
TARGET = dcdbunitconv
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment