diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:31 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:31 -0800 |
commit | 8ad0dd2a5c5f23cd210aedba72a43e48026e7436 (patch) | |
tree | b4293a1636331777f640f43f814667a9e1b0bbb7 /pppd/plugins/radius/Makefile.linux | |
parent | 7ec1262af43ee60f9e61973439fce12a471b4f99 (diff) | |
download | ppp-8ad0dd2a5c5f23cd210aedba72a43e48026e7436.tar.gz |
auto import from //depot/cupcake/@135843android-sdk-1.5_r3android-sdk-1.5_r1android-sdk-1.5-preandroid-1.5r4android-1.5r3android-1.5r2android-1.5cupcake-releasecupcake
Diffstat (limited to 'pppd/plugins/radius/Makefile.linux')
-rw-r--r-- | pppd/plugins/radius/Makefile.linux | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pppd/plugins/radius/Makefile.linux b/pppd/plugins/radius/Makefile.linux new file mode 100644 index 0000000..2b071aa --- /dev/null +++ b/pppd/plugins/radius/Makefile.linux @@ -0,0 +1,65 @@ +# Makefile for RADIUS plugin +# +# Copyright 2002 Roaring Penguin Software Inc. +# + +DESTDIR = @DESTDIR@ +MANDIR = $(DESTDIR)/share/man/man8 +LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION) + +VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h) + +INSTALL = install + +PLUGIN=radius.so radattr.so radrealms.so +CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON + +# Uncomment the next line to include support for Microsoft's +# MS-CHAP authentication protocol. +CHAPMS=y +# Uncomment the next line to include support for MPPE. +MPPE=y +# Uncomment the next lint to include support for traffic limiting +MAXOCTETS=y + +ifdef CHAPMS +CFLAGS += -DCHAPMS=1 +ifdef MPPE +CFLAGS += -DMPPE=1 +endif +endif +ifdef MAXOCTETS +CFLAGS += -DMAXOCTETS=1 +endif + +all: $(PLUGIN) + +install: all + $(INSTALL) -d -m 755 $(LIBDIR) + $(INSTALL) -s -c -m 755 radius.so $(LIBDIR) + $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR) + $(INSTALL) -s -c -m 755 radrealms.so $(LIBDIR) + $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR) + $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR) + +radius.so: radius.o libradiusclient.a + $(CC) -o radius.so -shared radius.o libradiusclient.a + +radattr.so: radattr.o + $(CC) -o radattr.so -shared radattr.o + +radrealms.so: radrealms.o + $(CC) -o radrealms.so -shared radrealms.o + +CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \ + clientid.o sendserver.o lock.o util.o md5.o +libradiusclient.a: $(CLIENTOBJS) + $(AR) rv $@ $? + +clean: + rm -f *.o *.so *.a + +distclean: + rm -f *.o *.so *.a + +dist-clean: distclean |