extend Makefiles

master
Gernot Kranz 4 weeks ago
parent 7d3681f2ef
commit 7addc37da4

@ -25,6 +25,9 @@ PREFIX?=$(HOME)
SYS_PREFIX=/usr
CXXFLAGS+=-std=c++17 -fPIC
OPENSSL_INCLUDE=/opt/local/include
OPENSSL_LIB=/opt/local/libexec/openssl3/lib
# Overrides
-include $(HERE)local.conf
@ -32,8 +35,9 @@ CXXFLAGS+=-std=c++17 -fPIC
CXXFLAGS+=-I$(PREFIX)/include
LDFLAGS+=-L$(PREFIX)/lib
CXXFLAGS+=-I$(SYS_PREFIX)/include
LDFLAGS+=-L$(SYS_PREFIX)/lib
CXXFLAGS+=-I$(SYS_PREFIX)/include -I$(OPENSSL_INCLUDE)
LDFLAGS+=-L$(SYS_PREFIX)/lib -L$(OPENSSL_LIB)
# Probably needs a way to add this automatically?
ifneq (,$(findstring g++,$(CXX)))
CXXFLAGS+=-fdiagnostics-color=always

@ -8,3 +8,5 @@
# YML2_PATH=$(HOME)/yml2
# YML2_PROC=$(YML2_PATH)/yml2proc $(YML2_OPTS)
# YML2_OPTS=--encoding=utf8
# OPENSSL_INCLUDE=/opt/local/include
# OPENSSL_LIB=/opt/local/libexec/openssl3/lib

@ -22,7 +22,9 @@ else
LDFLAGS+=-lpEpAdapter
endif
LDFLAGS+=-lpEpCxx11 -lpEpEngine -lpthread -ldl -lstdc++
LDFLAGS+=-lpEpCxx11 -lpEpEngine -lpthread -ldl -lstdc++ -lmailio -lssl -lcrypto
# Don't know if needed. If running into problems, try uncommenting those:
#LDFLAGS+=-lboost_regex-mt -lboost_system-mt -lboost_date_time-mt
ifneq ($(MAKECMDGOALS),clean)

Loading…
Cancel
Save