mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-18 17:57:39 +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
|
LIBS=-Wl,--as-needed
|
||||||
OBJS=common.o sslh-main.o probe.o tls.o
|
OBJS=common.o sslh-main.o probe.o tls.o
|
||||||
|
|
||||||
|
CONDITIONAL_TARGETS=
|
||||||
|
|
||||||
ifneq ($(strip $(USELIBWRAP)),)
|
ifneq ($(strip $(USELIBWRAP)),)
|
||||||
LIBS:=$(LIBS) -lwrap
|
LIBS:=$(LIBS) -lwrap
|
||||||
CPPFLAGS+=-DLIBWRAP
|
CPPFLAGS+=-DLIBWRAP
|
||||||
@ -54,10 +56,11 @@ endif
|
|||||||
ifneq ($(strip $(USESYSTEMD)),)
|
ifneq ($(strip $(USESYSTEMD)),)
|
||||||
LIBS:=$(LIBS) -Wl,-Bstatic -lsystemd -Wl,-Bdynamic
|
LIBS:=$(LIBS) -Wl,-Bstatic -lsystemd -Wl,-Bdynamic
|
||||||
CPPFLAGS+=-DSYSTEMD
|
CPPFLAGS+=-DSYSTEMD
|
||||||
|
CONDITIONAL_TARGETS+=systemd-sslh-generator
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
all: sslh $(MAN) echosrv
|
all: sslh $(MAN) echosrv $(CONDITIONAL_TARGETS)
|
||||||
|
|
||||||
.c.o: *.h
|
.c.o: *.h
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user