1### Installation paths and compiled-in defaults 2# 3DIR_BIN = /usr/local/bin 4DIR_SBIN = /usr/local/sbin 5DIR_ETC = /usr/local/etc/openradius 6DIR_LIB = /usr/local/lib/openradius 7FILE_LOG = /var/log/openradius.log 8 9 10### Modules that will be built and installed 11# 12TGT_LIB += modules/ascfile/ascfile 13TGT_LIB += modules/unixpasswd/unixpasswd 14TGT_LIB += modules/radlogger/radlogger 15TGT_LIB += modules/delay/delay 16TGT_LIB += modules/radsql/radsql 17#TGT_LIB += modules/radldap/radldap 18 19 20### System compatibility flags, used in some targets' CF_TGT, LF_TGT or LL_TGT 21# 22S_CF_U_INT32_T = -DU_INT32_T=unsigned 23S_CF_SYSLOG = -DHAVE_SYSLOG 24#S_CF_VSNPRINTF = -DHAVE_VSNPRINTF 25S_CF_SIGACTION = -DHAVE_SIGACTION 26S_LL_INET = -lnsl -lsocket 27 28 29### Build flags for all targets 30# 31#CF_ALL = -O2 -Wall 32#LF_ALL = -s 33#LL_ALL = 34CF_ALL = -g -Wall 35LF_ALL = 36LL_ALL = 37 38 39### Module-specific build flags 40# 41CF_RADLDAP = -I/usr/local/include/openldap 42LF_RADLDAP = -L/usr/local/lib 43LL_RADLDAP = -lldap -llber -lresolv 44 45 46### Build tools 47# 48# The C compiler named here must output full (header) dependencies in $(@).d. 49# It may be necessary to create a script similar to ccd-gcc for your compiler. 50# 51CMPLR = ./build/ccd-gcc 52DEFHDR = ./build/hdr 53INST = ./build/install 54ARCHIVE = ar rc $@ $^ 55# 56COMP = $(CMPLR) $(CF_ALL) $(CF_TGT) -o $@ -c $< 57LINK = $(CMPLR) $(LF_ALL) $(LF_TGT) -o $@ $^ $(LL_TGT) $(LL_ALL) 58COMPLINK = $(CMPLR) $(CF_ALL) $(CF_TGT) $(LF_ALL) $(LF_TGT) -o $@ $< $(LL_TGT) $(LL_ALL) 59 60 61### Standard parts 62# 63include Rules.mk 64 65