X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fplugins%2FMakefile.linux;h=a1f5c320ca9c90fceaad78cafa6acc51b4db2263;hp=0cc916b96763997f79449b79882f056c34cf9b08;hb=5ee9cac538f771a03b3dad6c9afe6a1d5d0a3c14;hpb=dbfeebc9adcf76a50c1d4e9035d5d481914edb43 diff --git a/pppd/plugins/Makefile.linux b/pppd/plugins/Makefile.linux index 0cc916b..a1f5c32 100644 --- a/pppd/plugins/Makefile.linux +++ b/pppd/plugins/Makefile.linux @@ -1,10 +1,18 @@ CC = gcc -CFLAGS = -g -O2 -I.. -I../../include -D_linux_=1 -fPIC +COPTS = -O2 -g +CFLAGS = $(COPTS) -I.. -I../../include -fPIC LDFLAGS = -shared -INSTALL = install -o root +INSTALL = install -SUBDIRS = rp-pppoe -PLUGINS = minconn.so passprompt.so +DESTDIR = @DESTDIR@ +BINDIR = $(DESTDIR)/sbin +MANDIR = $(DESTDIR)/share/man/man8 +LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION) + +SUBDIRS := rp-pppoe pppoatm +# Uncomment the next line to include the radius authentication plugin +SUBDIRS += radius +PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so # include dependencies if present ifeq (.depend,$(wildcard .depend)) @@ -18,13 +26,11 @@ all: $(PLUGINS) $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h) -LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION) install: $(PLUGINS) $(INSTALL) -d $(LIBDIR) $(INSTALL) $? $(LIBDIR) - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d INSTALL=$(INSTALL) \ - LIBDIR=$(LIBDIR) install; done + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install; done clean: rm -f *.o *.so *.a