1 # Makefile for RADIUS plugin
3 # Copyright 2002 Roaring Penguin Software Inc.
6 DESTDIR = $(INSTROOT)@DESTDIR@
7 MANDIR = $(DESTDIR)/share/man/man8
8 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
10 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h)
14 PLUGIN=radius.so radattr.so radrealms.so
16 CFLAGS += -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
18 # Uncomment the next line to include support for Microsoft's
19 # MS-CHAP authentication protocol.
21 # Uncomment the next line to include support for MPPE.
23 # Uncomment the next lint to include support for traffic limiting
33 CFLAGS += -DMAXOCTETS=1
39 $(INSTALL) -d -m 755 $(LIBDIR)
40 $(INSTALL) -c -m 755 radius.so $(LIBDIR)
41 $(INSTALL) -c -m 755 radattr.so $(LIBDIR)
42 $(INSTALL) -c -m 755 radrealms.so $(LIBDIR)
43 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)
44 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
46 radius.so: radius.o libradiusclient.a
47 $(CC) $(LDFLAGS) -o radius.so -shared radius.o libradiusclient.a
50 $(CC) $(LDFLAGS) -o radattr.so -shared radattr.o
52 radrealms.so: radrealms.o
53 $(CC) $(LDFLAGS) -o radrealms.so -shared radrealms.o
55 CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
56 clientid.o sendserver.o lock.o util.o md5.o
57 libradiusclient.a: $(CLIENTOBJS)