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.
26 $(MAKE) $(MFLAGS) -C radiusclient install
27 $(INSTALL) -d -m 755 $(LIBDIR)
28 $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
29 $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
30 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)/man8
31 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)/man8
33 radius.so: radiusclient/lib/.libs/libradiusclient.a radius.o
34 gcc -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
37 gcc -o radattr.so -shared radattr.o
40 gcc $(CFLAGS) -c -o radius.o -fPIC radius.c
43 gcc $(CFLAGS) -c -o radattr.o -fPIC radattr.c
45 radiusclient/lib/.libs/libradiusclient.a:
46 test -r radiusclient/Makefile || \
48 ./configure --prefix=/usr \
52 $(MAKE) -C radiusclient
55 $(MAKE) $(MFLAGS) -C radiusclient clean
60 $(MAKE) $(MFLAGS) -C radiusclient distclean