diff options
Diffstat (limited to 'src/main/radiusd.mk')
-rw-r--r-- | src/main/radiusd.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/radiusd.mk b/src/main/radiusd.mk new file mode 100644 index 0000000..651413a --- /dev/null +++ b/src/main/radiusd.mk @@ -0,0 +1,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 |