2008-02-27 20:34:43 -05:00
|
|
|
ALL=radius_example
|
|
|
|
|
2020-09-18 05:49:48 -04:00
|
|
|
include ../src/build.rules
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
CFLAGS += -I.
|
|
|
|
CFLAGS += -I../src
|
|
|
|
CFLAGS += -I../src/utils
|
|
|
|
|
2009-12-24 05:05:51 -05:00
|
|
|
LIBS = ../src/radius/libradius.a
|
|
|
|
LIBS += ../src/crypto/libcrypto.a
|
|
|
|
LIBS += ../src/utils/libutils.a
|
2014-04-02 02:49:35 -04:00
|
|
|
LLIBS = -lrt
|
2008-02-27 20:34:43 -05:00
|
|
|
|
2009-12-24 05:05:51 -05:00
|
|
|
../src/utils/libutils.a:
|
|
|
|
$(MAKE) -C ../src/utils
|
2008-02-27 20:34:43 -05:00
|
|
|
|
2009-12-24 05:05:51 -05:00
|
|
|
../src/crypto/libcrypto.a:
|
|
|
|
$(MAKE) -C ../src/crypto
|
2008-02-27 20:34:43 -05:00
|
|
|
|
2009-12-24 05:05:51 -05:00
|
|
|
../src/radius/libradius.a:
|
|
|
|
$(MAKE) -C ../src/radius
|
2008-02-27 20:34:43 -05:00
|
|
|
|
2009-12-24 05:18:22 -05:00
|
|
|
#CLAGS += -DCONFIG_IPV6
|
|
|
|
|
2008-02-27 20:34:43 -05:00
|
|
|
OBJS_ex = radius_example.o
|
|
|
|
|
2020-09-18 05:49:53 -04:00
|
|
|
_OBJS_VAR := OBJS_ex
|
|
|
|
include ../src/objs.mk
|
|
|
|
|
2009-12-24 05:05:51 -05:00
|
|
|
radius_example: $(OBJS_ex) $(LIBS)
|
2014-04-02 02:49:35 -04:00
|
|
|
$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
|
2008-02-27 20:34:43 -05:00
|
|
|
|
2020-09-18 05:49:51 -04:00
|
|
|
clean: common-clean
|
|
|
|
rm -f core *~ *.o *.d
|