Merge pull request #98 from candrews/patch-3

Build systemd-sslh-generator if USESYSTEMD is set
This commit is contained in:
yrutschle 2017-12-16 18:59:36 +01:00 committed by GitHub
commit b8851d6714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,8 @@ CFLAGS ?=-Wall -g $(CFLAGS_COV)
LIBS=-Wl,--as-needed
OBJS=common.o sslh-main.o probe.o tls.o
CONDITIONAL_TARGETS=
ifneq ($(strip $(USELIBWRAP)),)
LIBS:=$(LIBS) -lwrap
CPPFLAGS+=-DLIBWRAP
@ -54,10 +56,11 @@ endif
ifneq ($(strip $(USESYSTEMD)),)
LIBS:=$(LIBS) -Wl,-Bstatic -lsystemd -Wl,-Bdynamic
CPPFLAGS+=-DSYSTEMD
CONDITIONAL_TARGETS+=systemd-sslh-generator
endif
all: sslh $(MAN) echosrv
all: sslh $(MAN) echosrv $(CONDITIONAL_TARGETS)
.c.o: *.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<