X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2FMakefile.linux;h=af5384381cb07c27fa4043824f80b6ab69807fa9;hb=c9d9dbfb8459b528ab56bd1cf0c41460801bbfdf;hp=6de115edcae86a45861d6f229a6427003f322311;hpb=c3480c5c56919a12f7bd34f8a9e193922c154fe9;p=ppp.git diff --git a/pppd/plugins/Makefile.linux b/pppd/plugins/Makefile.linux index 6de115e..af53843 100644 --- a/pppd/plugins/Makefile.linux +++ b/pppd/plugins/Makefile.linux @@ -1,7 +1,7 @@ -CC = gcc +#CC = gcc COPTS = -O2 -g CFLAGS = $(COPTS) -I.. -I../../include -fPIC -LDFLAGS = -shared +LDFLAGS_SHARED = -shared INSTALL = install DESTDIR = $(INSTROOT)@DESTDIR@ @@ -14,28 +14,35 @@ SUBDIRS := rp-pppoe pppoatm pppol2tp SUBDIRS += radius PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so +# This setting should match the one in ../Makefile.linux +MPPE=y + +ifdef MPPE +CFLAGS += -DMPPE=1 +endif + # include dependencies if present ifeq (.depend,$(wildcard .depend)) include .depend endif all: $(PLUGINS) - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all; done + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all || exit $$?; done %.so: %.c - $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ + $(CC) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED) $(CFLAGS) $^ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h) install: $(PLUGINS) $(INSTALL) -d $(LIBDIR) $(INSTALL) $? $(LIBDIR) - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install; done + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install || exit $$?; done clean: rm -f *.o *.so *.a - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean || exit $$?; done depend: $(CPP) -M $(CFLAGS) *.c >.depend - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend || exit $$?; done