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
15 CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
17 # Uncomment the next line to include support for Microsoft's
18 # MS-CHAP authentication protocol.
20 # Uncomment the next line to include support for MPPE.
22 # Uncomment the next lint to include support for traffic limiting
32 CFLAGS += -DMAXOCTETS=1
38 $(INSTALL) -d -m 755 $(LIBDIR)
39 $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
40 $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
41 $(INSTALL) -s -c -m 755 radrealms.so $(LIBDIR)
42 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)
43 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
45 radius.so: radius.o libradiusclient.a
46 $(CC) -o radius.so -shared radius.o libradiusclient.a
49 $(CC) -o radattr.so -shared radattr.o
51 radrealms.so: radrealms.o
52 $(CC) -o radrealms.so -shared radrealms.o
54 CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
55 clientid.o sendserver.o lock.o util.o md5.o
56 libradiusclient.a: $(CLIENTOBJS)