jw-pkg/make/wt-defs.mk
Jan Lindemann 58ab619f0b make: Rename CFLAGS, CXXFLAGS and CPPFLAGS variables
Rename CFLAGS and friends to follow the conventions of the implicit rules
defined by GNU Make:

 - $(CPPFLAGS) is passed to both C++ and C compiler
 - $(CXXFLAGS) is passed to C++ compiler only
 - $(CFLAGS) is passed to C compiler only
 - C++ compiler is in $(CXX)

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-19 07:07:00 +00:00

21 lines
553 B
Makefile

ifeq ($(USE_WT),true)
# WT_VERSION = $(shell $(RPM) -q wt-devel | sed 's/wt-devel-\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/;')
ifeq ($(USE_WT_FASTCGI),true)
PROJECT_LDFLAGS += -lwtfcgi
endif
ifeq ($(USE_WT_HTTPD),true)
PROJECT_LDFLAGS += -lwthttp
PROJECT_CFLAGS += -DCONNECTOR_HTTP=YES
PROJECT_CXXFLAGS += -DCONNECTOR_HTTP=YES
endif
ifeq ($(USE_WT_DBO),true)
PROJECT_LDFLAGS += -lwtdbopostgres -lwtdbosqlite3 -lwtdbo
endif
PROJECT_LDFLAGS += -lwt
endif