1 # Makefile for RADIUS plugin
3 # Copyright 2002 Roaring Penguin Software Inc.
7 PLUGIN=radius.so radattr.so
8 CFLAGS=-I../.. -Iradiusclient/include -O2
10 # Uncomment the next line to include support for Microsoft's
11 # MS-CHAP authentication protocol.
21 $(MAKE) $(MFLAGS) -C radiusclient install
22 $(INSTALL) -d -m 755 $(LIBDIR)
23 $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
24 $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
25 $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)/man8
26 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)/man8
28 radius.so: radiusclient/lib/.libs/libradiusclient.a radius.o
29 gcc -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
32 gcc -o radattr.so -shared radattr.o
35 gcc $(CFLAGS) -c -o radius.o -fPIC radius.c
38 gcc $(CFLAGS) -c -o radattr.o -fPIC radattr.c
40 radiusclient/lib/.libs/libradiusclient.a:
41 test -r radiusclient/Makefile || \
43 ./configure --prefix=/usr \
47 $(MAKE) -C radiusclient
50 $(MAKE) $(MFLAGS) -C radiusclient clean
55 $(MAKE) $(MFLAGS) -C radiusclient distclean