]> WPIA git - cassiopeia.git/blobdiff - Makefile
add: Include configuration for the database access
[cassiopeia.git] / Makefile
index 011da11564aef1e222125515a0362092f4eb840b..cfa9b76ae771ecda771fefe4b895052f6cd22f49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,13 @@ CXX=${LT_CXX}
 CXX_DEP=${LT_CXX_DEP}
 LD=${LT_LD}
 
-CFLAGS=-O3 -g -flto -Wall -Werror -Wextra -pedantic -std=c++11
+ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
+ADDFLAGS=-DNO_DAEMON
+endif
+
+CFLAGS=-O3 -g -flto -Wall -Werror -Wextra -pedantic -std=c++11 ${ADDFLAGS}
 CXXFLAGS=$(CFLAGS)
-LDFLAGS=-O3 -g -flto -lmysqlclient
+LDFLAGS=-O3 -g -flto -lmysqlclient -lssl -lcrypto -ldl
 
 SRC_DIR=src
 OBJ_DIR=obj