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