1 # Makefile for RADIUS plugin
3 # Copyright 2002 Roaring Penguin Software Inc.
7 PLUGIN=radius.so radattr.so
8 CFLAGS=-I../.. -I../../../include -Iradiusclient/include -O2
10 # Uncomment the next line to include support for Microsoft's
11 # MS-CHAP authentication protocol.
13 # Uncomment the next line to include support for MPPE.
15 # Uncomment the next lint to include support for traffic limiting
25 CFLAGS += -DMAXOCTETS=1
31 $(MAKE) $(MFLAGS) -C radiusclient install
32 $(INSTALL) -d -m 755 $(LIBDIR)
33 $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
34 $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
35 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)/man8
36 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)/man8
38 radius.so: radiusclient/lib/.libs/libradiusclient.a radius.o
39 gcc -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
42 gcc -o radattr.so -shared radattr.o
45 gcc $(CFLAGS) -c -o radius.o -fPIC radius.c
48 gcc $(CFLAGS) -c -o radattr.o -fPIC radattr.c
50 radiusclient/lib/.libs/libradiusclient.a:
51 test -r radiusclient/Makefile || \
53 ./configure --prefix=/usr \
57 $(MAKE) -C radiusclient
60 $(MAKE) $(MFLAGS) -C radiusclient clean
65 $(MAKE) $(MFLAGS) -C radiusclient distclean