mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-14 08:07:14 +03:00
Merge pull request #98 from candrews/patch-3
Build systemd-sslh-generator if USESYSTEMD is set
This commit is contained in:
commit
b8851d6714
5
Makefile
5
Makefile
@ -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 $<
|
||||
|
Loading…
x
Reference in New Issue
Block a user