summaryrefslogtreecommitdiffstats
path: root/src/main/radiusd.mk
blob: 651413a32e31cb1a8f90c811e352e6d11babec9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TARGET	:= radiusd
SOURCES := acct.c auth.c client.c crypt.c files.c \
		  listen.c  mainconfig.c modules.c modcall.c \
		  radiusd.c state.c stats.c soh.c connection.c \
		  session.c threads.c channel.c \
		  process.c realms.c detail.c
ifneq ($(OPENSSL_LIBS),)
SOURCES	+= cb.c tls.c tls_listen.c
endif

SRC_CFLAGS	:= -DHOSTINFO=\"${HOSTINFO}\"

TGT_INSTALLDIR  := ${sbindir}
TGT_LDLIBS	:= $(LIBS) $(OPENSSL_LIBS) $(SYSTEMD_LIBS) $(LCRYPT)
TGT_PREREQS	:= libfreeradius-server.a libfreeradius-radius.a

# Libraries can't depend on libraries (oops), so make the binary
# depend on the EAP code...
ifneq "$(filter rlm_eap_%,${ALL_TGTS})" ""
TGT_PREREQS	+= libfreeradius-eap.a
endif