+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-include ../Make.inc
-MFLAGS += --no-print-directory
-
-SUBDIRS = include lib modules main
-WHAT_TO_MAKE = all
-
-.PHONY: all clean install reconfig
-all: freeradius-devel
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-clean:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
- @rm -f include/*~ *~
-
-install:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-reconfig:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-.PHONY: tests
-tests:
- @$(MAKE) -C tests tests
-
-.PHONY: common $(SUBDIRS)
-
-#
-# Ensure correct build order
-lib: include
-
-modules: lib
-
-main: modules
-
-common: $(SUBDIRS)
-
-$(SUBDIRS):
- @echo "Making $(WHAT_TO_MAKE) in $(X)src/$@..."
- @$(MAKE) $(MFLAGS) X=$(X)src/ -C $@ $(WHAT_TO_MAKE)
-
-freeradius-devel:
- ln -sf include freeradius-devel
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-HEADERS = conf.h conffile.h detail.h dhcp.h event.h features.h hash.h heap.h \
- ident.h libradius.h md4.h md5.h missing.h modcall.h modules.h \
- packet.h rad_assert.h radius.h radiusd.h radpaths.h \
- radutmp.h realms.h sha1.h stats.h sysutmp.h token.h \
- udpfromto.h vmps.h vqp.h base64.h
-
-include ../../Make.inc
-.PHONY: all clean distclean install
-
-.PHONY: all clean distclean install reconfig
-all: radpaths.h features.h missing.h tls.h
-
-radpaths.h: build-radpaths-h
- @/bin/sh ./build-radpaths-h
-
-#
-# This is hacky, feature defines should go away or be set with configure.in
-#
-autoconf.sed: autoconf.h
- @grep ^#define $< | sed 's,/\*\*/,1,;' | awk '{print "\
- s,#[[:blank:]]*ifdef[[:blank:]]*" $$2 ",#if "$$3 ",g;\
- s,#[[:blank:]]*ifndef[[:blank:]]*" $$2 ",#if !"$$3 ",g;\
- s,defined(" $$2 ")," $$3 ",g;\
- s," $$2 ","$$3 ",g;"}' > $@
-
-features.h: features-h autoconf.h
- @cp $< $@
- @grep "^#define[[:blank:]]\{1,\}WITH_" autoconf.h >> features.h
-
-missing.h: missing-h autoconf.sed
- @sed -f autoconf.sed < $< > $@
-
-tls.h: tls-h autoconf.sed
- @sed -f autoconf.sed < $< > $@
-
-distclean: clean
- @rm -f radpaths.h
-
-reconfig clean:
- @rm -f features.h missing.h tls.h
- @rm -f autoconf.sed
-
-install:
- $(INSTALL) -d -m 755 $(R)$(includedir)/freeradius
- for i in $(HEADERS); do \
- sed 's/^#include <freeradius-devel/#include <freeradius/' $$i > .inst.$$$$ ; \
- $(INSTALL) -m 644 .inst.$$$$ $(R)$(includedir)/freeradius/$$i; \
- rm -f .inst.$$$$ ; \
- done
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-include ../../Make.inc
-
-SRCS = dict.c filters.c hash.c hmac.c hmacsha1.c isaac.c log.c \
- misc.c missing.c md4.c md5.c print.c radius.c rbtree.c \
- sha1.c snprintf.c strlcat.c strlcpy.c token.c udpfromto.c \
- valuepair.c fifo.c packet.c event.c getaddrinfo.c vqp.c \
- heap.c dhcp.c tcp.c base64.c
-
-LT_OBJS = $(SRCS:.c=.$(LO))
-
-INCLUDES = ../include/radius.h ../include/libradius.h \
- ../include/missing.h ../include/ident.h
-
-
-CFLAGS += -D_LIBRADIUS -I$(top_builddir)/src
-
-# if you have problems with things that need SHA1-HMAC, this will
-# dump the key and the input to the hash so you can compare to what
-# the other end is doing.
-#CFLAGS += -DHMAC_SHA1_DATA_PROBLEMS
-
-TARGET = $(LIBPREFIX)freeradius-radius
-
-# Define new rule for libtool objects
-%.$(LO) : %.c
- @echo CC $<
- @$(COMPILE.c) $(CFLAGS) -c $<
-
-.PHONY: all clean install reconfig
-all: $(TARGET).$(LA)
-
-$(TARGET).$(LA): $(LT_OBJS)
- @echo LINK $@ $^
- @$(LINK.lib) $@ $(LDFLAGS) $^
-
-$(LT_OBJS): $(INCLUDES)
-
-clean:
- @rm -f *.$(LO) $(TARGET).$(LA)
- @rm -rf .libs
-
-install: all
- $(INSTALL) -d -m 755 $(R)$(libdir)
- $(LIBTOOL) --mode=install $(INSTALL) -c $(MOD_RPATH) $(TARGET).la \
- $(R)$(libdir)/$(TARGET).la
- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION_STRING).la;
- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION_STRING).la
-
-reconfig:
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-include ../../Make.inc
-
-WHAT_TO_MAKE = all
-MFLAGS += --no-print-directory
-
-all:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-install:
- $(INSTALL) -d -m 755 $(R)$(libdir)
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-clean:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
- @rm -f *~ lib/rlm_* lib/*.o lib/smbencrypt lib/radeapclient
-
-distclean:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-# Requires GNU Make, but even older ones will do.
-SUBDIRS := $(patsubst %/,%,$(dir $(wildcard $(addsuffix /Makefile,$(MODULES)))))
-
-.PHONY: common libs $(SUBDIRS)
-
-libs:
- @[ -d lib/ ] || mkdir lib
- @[ -d lib/.libs ] || mkdir lib/.libs
-
-common: libs $(SUBDIRS)
-
-$(SUBDIRS):
- @echo "Making $(WHAT_TO_MAKE) in $(X)modules/$@..."
- @$(MAKE) $(MFLAGS) X=$(X)modules/ -C $@ $(WHAT_TO_MAKE)
-
-# The rlm_*/*/* stuff is to catch the configure
-CONFIG_FILES := $(wildcard rlm_*/configure.in rlm_*/*/*/configure.in)
-
-.PHONY: reconfig $(CONFIG_FILES)
-
-#
-# Do NOT use "common", because some modules may not be built,
-# and therefore their makefiles may be empty or non-existent.
-#
-ifeq "$(AUTOCONF)" ""
-reconfig:
- @echo autoconf is needed for this target
-else
-ifeq "$(AUTOHEADER)" ""
-reconfig:
- @echo autoheader is needed for this target
-else
-reconfig: $(CONFIG_FILES)
-endif
-endif
-
-# Don't use: $(MAKE) -C $(dir $@) reconfig
-# The modules may not have a Makefile
-$(CONFIG_FILES):
- @echo "Making reconfig in $(dir $@)..."
- @cd $(dir $@) && $(AUTOCONF) -I ./m4 -I $(top_builddir) -I $(top_builddir)/m4
- @if grep AC_CONFIG_HEADERS $@ >/dev/null; then\
- cd $(dir $@) && $(AUTOHEADER); \
- fi
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_always
-SRCS = rlm_always.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_attr_filter
-SRCS = rlm_attr_filter.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_cache
-SRCS = rlm_cache.c
-HEADERS =
-RLM_CFLAGS =
-RLM_LIBS =
-
-include ../rules.mak
-
-$(STATIC_OBJS): $(HEADERS)
-
-$(DYNAMIC_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_chap
-SRCS = rlm_chap.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_cram
-SRCS = rlm_cram.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_detail
-SRCS = rlm_detail.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_dhcp
-SRCS = rlm_dhcp.c
-HEADERS =
-RLM_CFLAGS =
-RLM_LIBS =
-
-include ../rules.mak
-
-$(STATIC_OBJS): $(HEADERS)
-
-$(DYNAMIC_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_digest
-SRCS = rlm_digest.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_dynamic_clients
-SRCS = rlm_dynamic_clients.c
-HEADERS =
-RLM_CFLAGS =
-RLM_LIBS =
-
-include ../rules.mak
-
-$(STATIC_OBJS): $(HEADERS)
-
-$(DYNAMIC_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-include ../../../../Make.inc
-
-SRCS = eapcommon.c eapcrypto.c eapsimlib.c fips186prf.c
-ifneq ($(OPENSSL_LIBS),)
-SRCS += eap_tls.c mppe_keys.c
-endif
-LT_OBJS = $(SRCS:.c=.lo)
-INCLUDES = eap_types.h eap_tls.h
-CFLAGS += -DEAPLIB -I. -I.. -I$(top_builddir)/src
-ifeq ($(USE_SHARED_LIBS),yes)
-LINK_MODE = -export-dynamic
-else
-LINK_MODE = -static
-endif
-TARGET = $(LIBPREFIX)freeradius-eap
-
-# Define new rule for libtool objects
-%.lo: %.c
- @echo CC $<
- @$(LIBTOOL) --quiet --mode=compile $(CC) $(CFLAGS) -c $<
-
-all: $(TARGET).la
-
-$(TARGET).la: $(LT_OBJS)
- @echo LINK $@ $<
- @$(LIBTOOL) --quiet --mode=link $(CC) -release $(RADIUSD_VERSION_STRING) \
- $(LDFLAGS) $(LINK_MODE) -o $@ $(MOD_RPATH) $^ \
- $(LIBRADIUS) $(LIBS)
- @for x in .libs/* $^; do \
- rm -f $(top_builddir)/src/modules/lib/$$x; \
- ln -s $(top_builddir)/src/modules/rlm_eap/libeap/$$x $(top_builddir)/src/modules/lib/$$x; \
- done
-
-$(LT_OBJS): $(INCLUDES)
-
-clean:
- @rm -f *.o *.lo $(TARGET).la
- @rm -rf .libs
-
-install: all
- $(LIBTOOL) --mode=install $(INSTALL) -c $(MOD_RPATH) $(TARGET).la \
- $(R)$(libdir)/$(TARGET).la
- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION_STRING).la;
- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION_STRING).la
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-all:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-clean:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-install:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-reconfig:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-SUBDIRS := $(patsubst %/,%,$(dir $(wildcard rlm_eap*/Makefile)))
-
-.PHONY: common $(SUBDIRS)
-
-common: $(SUBDIRS)
-
-# The PEAP and TTLS sub-modules require eap_tls.
-#
-# If they're not being built, this rule is ignored because they're
-# phony targets.
-#
-rlm_eap_peap rlm_eap_ttls: rlm_eap_tls
-
-$(SUBDIRS):
- @echo "Making $(WHAT_TO_MAKE) in $(X)types/$@..."
- @$(MAKE) $(MFLAGS) X=$(X)types/ -C $@ $(WHAT_TO_MAKE)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_eap_gtc
-SRCS = rlm_eap_gtc.c
-RLM_CFLAGS = -I../.. -I../../libeap
-HEADERS = ../../rlm_eap.h ../../eap.h
-RLM_INSTALL =
-
-RLM_DIR=../../
-include ${RLM_DIR}../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_eap_leap
-SRCS = rlm_eap_leap.c eap_leap.c smbdes.c
-RLM_CFLAGS = -I../.. -I../../libeap
-HEADERS = eap_leap.h ../../eap.h ../../rlm_eap.h
-RLM_INSTALL =
-
-RLM_DIR=../../
-include ${RLM_DIR}../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_eap_md5
-SRCS = rlm_eap_md5.c eap_md5.c
-HEADERS = eap_md5.h
-RLM_CFLAGS = -I../.. -I../../libeap
-RLM_INSTALL =
-
-RLM_DIR=../../
-include ${RLM_DIR}../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_eap_mschapv2
-SRCS = rlm_eap_mschapv2.c
-HEADERS = eap_mschapv2.h
-RLM_CFLAGS = -I../.. -I../../libeap
-RLM_INSTALL =
-
-RLM_DIR=../../
-include ${RLM_DIR}../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_eap_sim
-SRCS = rlm_eap_sim.c
-HEADERS =
-RLM_CFLAGS = -I../.. -I../../libeap
-RLM_LIBS = ../../libeap/$(LIBPREFIX)freeradius-eap.la
-RLM_INSTALL =
-
-RLM_DIR=../../
-include ${RLM_DIR}../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-#
-# $Id$
-#
-
-#
-# This module is EXPERIMENTAL!
-#
-
-#
-# You will have to edit this Makefile to define where the
-# hostap distribution is located.
-#
-# You will also have to edit: hostap/eap_example/Makefile
-# to enable it to create a shared library, rather than a static one.
-#
-
-
-HOSTAP = /path/to/hostap
-
-TARGET =
-SRCS = rlm_eap2.c
-HEADERS =
-RLM_CFLAGS = -I$(HOSTAP)/src/eap_common \
- -I$(HOSTAP)/src/eap_server -I$(HOSTAP)/src \
- -I$(HOSTAP)/src/common -I$(HOSTAP)/src/utils
-RLM_LIBS = $(HOSTAP)/eap_example/libeap.so
-
-## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_exec
-SRCS = rlm_exec.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_expiration
-SRCS = rlm_expiration.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_expr
-SRCS = rlm_expr.c paircmp.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_files
-SRCS = rlm_files.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_linelog
-SRCS = rlm_linelog.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_logintime
-SRCS = rlm_logintime.c timestr.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_mschap
-SRCS = rlm_mschap.c mschap.c smbdes.c opendir.c
-HEADERS = mschap.h smbdes.h
-RLM_CFLAGS =
-RLM_LDFLAGS =
-RLM_LIBS =
-RLM_UTILS = smbencrypt$(EXEEXT)
-RLM_INSTALL =
-
-# over-ride the previous assignment if we're not building anything
-include ../rules.mak
-
-$(LT_OBJS): $(HEADERS)
-
-smbencrypt$(EXEEXT): smbencrypt.lo smbdes.lo $(LIBRADIUS)
- @echo LINK $@ $^
- @$(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
- -o $@ $^ $(RLM_LIBS) $(LIBS)
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_pap
-SRCS = rlm_pap.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_passwd
-SRCS = rlm_passwd.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_preprocess
-SRCS = rlm_preprocess.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_realm
-SRCS = rlm_realm.c
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_replicate
-SRCS = rlm_replicate.c
-HEADERS =
-RLM_CFLAGS =
-RLM_LIBS =
-
-include ../rules.mak
-
-$(STATIC_OBJS): $(HEADERS)
-
-$(DYNAMIC_OBJS): $(HEADERS)
+++ /dev/null
-#
-# Makefile
-#
-# You MUST edit this file by hand to make it work.
-# There is NO "configure" script available.
-#
-# Version: $Id$
-#
-
-#
-# SET THE TARGET
-#
-TARGET =
-#TARGET = rlm_securid
-
-SRCS = rlm_securid.c mem.c
-
-#
-# SET THE CORRECT PATH TO THE SECURID FILES
-#
-ACE_PATH = /path/to/SECURID81
-ARCH = lnx
-
-HEADERS = rlm_securid.h
-RLM_LIBS = -laceclnt
-
-#
-# YOU WILL PROBABLY NEED TO COPY $(ACE_PATH/lib/$(ARCH) to /usr/lib
-#
-RLM_CFLAGS = -I$(ACE_PATH)/inc -DUNIX
-
-include ../rules.mak
-
-$(LT_OBJS): $(HEADERS)
+++ /dev/null
-TARGET = rlm_sim_files
-SRCS = rlm_sim_files.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_soh
-SRCS = rlm_soh.c
-
-include ../rules.mak
+++ /dev/null
-#
-# Makefile
-#
-# Version: $Id$
-#
-
-TARGET = rlm_sometimes
-SRCS = rlm_sometimes.c
-
-include ../rules.mak
+++ /dev/null
-include ../../../../../Make.inc
-
-TARGET = rlm_sql_null
-SRCS = rlm_sql_null.c
-RLM_SQL_CFLAGS =
-RLM_SQL_LIBS =
-
-include ../rules.mak
+++ /dev/null
-#
-# This module is in the source, but not yet fully integrated with
-# the configure scripts. For now, manual editing of this file is
-# required to get it to build.
-#
-include ../../../../../Make.inc
-
-TARGET =
-#TARGET = rlm_sql_sybase
-SRCS = rlm_sql_sybase.c
-RLM_SQL_CFLAGS = -I/opt/sybase/OCS-12_0/include
-RLM_SQL_LIBS = -L/opt/sybase/OCS-12_0/lib -ltcl -lcomn -lintl -lnsl -ldl -lm -lcs -lct
-
-include ../rules.mak
+++ /dev/null
-TARGET = rlm_utf8
-SRCS = rlm_utf8.c
-HEADERS =
-RLM_CFLAGS =
-RLM_LIBS =
-
-include ../rules.mak
-
-$(STATIC_OBJS): $(HEADERS)
-
-$(DYNAMIC_OBJS): $(HEADERS)
+++ /dev/null
-# -*- text -*-
-##
-## Makefile -- Build and run tests for the server.
-##
-## http://www.freeradius.org/
-## $Id$
-##
-#
-include ../../Make.inc
-
-BUILD_PATH := $(top_builddir)/build
-TEST_PATH := $(top_builddir)/src/tests
-BIN_PATH := $(BUILD_PATH)/bin/local
-LIB_PATH := $(BUILD_PATH)/lib/.libs/
-DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):$(LIB_PATH)
-
-export DYLD_LIBRARY_PATH
-
-RADDB_PATH := $(top_builddir)/raddb
-
-TESTS = user_password chap mschapv1 digest-01/digest* test.example.com \
- wimax
-
-PORT = 12340
-#PORT = 1812
-ACCTPORT = $(shell expr $(PORT) + 1)
-
-# example.com stripped.example.com
-
-EAPOL_TEST = eapol_test
-
-EAP_TLS_TESTS = eap-ttls-pap.conf eap-mschapv2.conf \
- eap-ttls-mschapv2.conf peap-mschapv2.conf
-
-SECRET = testing123
-
-.PHONY: all eap dictionary clean
-
-#
-# Build the directory for testing the server
-#
-all: tests
-
-clean:
- @rm -f $(RADDB_PATH)/test.conf test.conf dictionary
-
-dictionary:
- @echo "# test dictionary not install. Delete at any time." > dictionary
- @echo '$$INCLUDE ' $(top_builddir)/share/dictionary >> dictionary
- @echo '$$INCLUDE ' $(top_builddir)/src/tests/dictionary.test >> dictionary
-
-test.conf: dictionary
- @echo "# test configuration file. Do not install. Delete at any time." > test.conf
- @echo "libdir =" $(LIB_PATH) >> test.conf
- @echo "testdir =" $(TEST_PATH) >> test.conf
- @echo 'dictionary = $${testdir}' >> test.conf
- @echo 'logdir = $${testdir}' >> test.conf
- @echo 'radacctdir = $${testdir}' >> test.conf
- @echo 'pidfile = $${testdir}/radiusd.pid' >> test.conf
- @echo '$$INCLUDE radiusd.conf' >> test.conf
- @echo '$$INCLUDE $${testdir}/config/' >> test.conf
-
-radiusd.pid: $(RADDB_PATH)/test.conf test.conf raddb
- @$(BIN_PATH)/radiusd -txxl $(TEST_PATH)/radius.log -md $(RADDB_PATH) -n test -i 127.0.0.1 -p $(PORT) || tail -n 20 $(TEST_PATH)/radius.log
-
-# We can't make this depend on radiusd.pid, because then make will create
-# radiusd.pid when we make radiusd.kill, which we don't want.
-.PHONY: radiusd.kill
-radiusd.kill:
- @if [ -f radiusd.pid ]; then \
- (kill -TERM `cat radiusd.pid` >/dev/null 2>&1) || exit 0; \
- fi
- @rm -f radiusd.pid
-
-# As test.conf includes radiusd.conf and as radiusd.conf includes everything in
-# mods-enabled and sites-enable we need to ensure those directories have been
-# created and are up to date.
-.PHONY: raddb
-raddb:
- @$(MAKE) -C $(RADDB_PATH) mods-enabled sites-enabled
-
-# Link from the main database directory to here
-$(RADDB_PATH)/test.conf: test.conf
- @[ -f $(RADDB_PATH)/test.conf ] || ln -s ../src/tests/test.conf $(RADDB_PATH)/
-
-# kill the server (if it's running)
-# start the server
-# run the tests (ignoring any failures)
-# kill the server
-# remove the changes to raddb/
-tests: $(RADDB_PATH)/test.conf radiusd.kill
- @chmod a+x runtests.sh
- @rm -f radius.log
- @$(MAKE) radiusd.pid
- @BIN_PATH="$(BIN_PATH)" PORT="$(PORT)" ./runtests.sh $(TESTS)
- @$(MAKE) radiusd.kill
- @rm -f $(RADDB_PATH)/test.conf
-
-tests.eap: $(RADDB_PATH)/test.conf radiusd.kill
- @chmod a+x runtests.sh
- @rm -f radius.log
- @$(MAKE) radiusd.pid
- @$(MAKE) eap
- @$(MAKE) radiusd.kill
- @rm -f $(RADDB_PATH)/test.conf
-
-eap: $(EAP_TLS_TESTS)
- for x in $(EAP_TLS_TESTS); do \
- $(EAPOL_TEST) -c $$x -p $(PORT) -s $(SECRET); \
- done
-
-md5:
- $(EAPOL_TEST) -c eap-md5.conf -s $(SECRET)
-
-tls:
- $(EAPOL_TEST) -c eap-ttls-tls.conf -s $(SECRET)
-
-ttls:
- $(EAPOL_TEST) -c eap-ttls-pap.conf -s $(SECRET)
-
-peap:
- $(EAPOL_TEST) -c peap-mschapv2.conf -s $(SECRET)
-
-leap:
- $(EAPOL_TEST) -c leap.conf -s $(SECRET)
-
-ATTRS := rfc.txt errors.txt extended.txt lucent.txt wimax.txt
-
-attrs: $(ATTRS) ../main/radattr
- ../main/radattr -d ../../share rfc.txt
-
-${LIBRADIUS}: $(wildcard ../include/*.h) $(wildcard ../lib/*.c)
- $(MAKE) -C ../lib all
-
-../main/radattr: ${LIBRADIUS} ../main/radattr.c
- $(MAKE) -C ../main radattr