]> WPIA git - cassiopeia.git/blobdiff - Makefile
add: Handling the MD for signing the certificate
[cassiopeia.git] / Makefile
index 6c982744e383cc21453ce242c50509d4f7568724..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
+LDFLAGS=-O3 -g -flto -lmysqlclient -lssl -lcrypto -ldl
 
 SRC_DIR=src
 OBJ_DIR=obj
@@ -97,7 +101,7 @@ collissiondetect:
 cassiopeia: bin/cassiopeia
 
 bin/cassiopeia: libs ${FS_OBJ}
-       ${MKDIR} $(shell dirname $@) && ${LT_LD} -o $@ ${FS_OBJ}
+       ${MKDIR} $(shell dirname $@) && ${LT_LD} ${LDFLAGS} -o $@ ${FS_OBJ}
 
 ${DEP_DIR}/%.d: ${SRC_DIR}/%.cpp
        ${MKDIR} $(shell dirname $@) && $(CXX_DEP) $(CXXFLAGS) -M -MF $@ $<