1 # Makefile for RADIUS plugin
3 # Copyright 2002 Roaring Penguin Software Inc.
7 PLUGIN=radius.so radattr.so radrealms.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) -s -c -m 755 radrealms.so $(LIBDIR)
36 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)/man8
37 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)/man8
39 radius.so: radiusclient/lib/.libs/libradiusclient.a radius.o
40 gcc -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
43 gcc -o radattr.so -shared radattr.o
45 radrealms.so: radrealms.o
46 gcc -o radrealms.so -shared radrealms.o
49 gcc $(CFLAGS) -c -o radius.o -fPIC radius.c
52 gcc $(CFLAGS) -c -o radattr.o -fPIC radattr.c
54 radrealms.o: radrealms.c
55 gcc $(CFLAGS) -c -o radrealms.o -fPIC radrealms.c
57 radiusclient/lib/.libs/libradiusclient.a:
58 test -r radiusclient/Makefile || \
60 ./configure --prefix=/usr \
64 $(MAKE) -C radiusclient
67 $(MAKE) $(MFLAGS) -C radiusclient clean
72 $(MAKE) $(MFLAGS) -C radiusclient distclean