]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/Makefile.linux
Switch to using RoaringPenguin-based PPPOE plugin
[ppp.git] / pppd / plugins / Makefile.linux
index 320f708c04447b7c8b3bffb2907095e98f84c390..0cc916b96763997f79449b79882f056c34cf9b08 100644 (file)
@@ -3,7 +3,7 @@ CFLAGS  = -g -O2 -I.. -I../../include -D_linux_=1 -fPIC
 LDFLAGS        = -shared
 INSTALL        = install -o root
 
-SUBDIRS = pppoe
+SUBDIRS = rp-pppoe
 PLUGINS = minconn.so passprompt.so
 
 # include dependencies if present
@@ -18,12 +18,13 @@ all:        $(PLUGINS)
        $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
 
 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
-LIBDIR = /usr/lib/pppd/$(VERSION)
+LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION)
 
 install: $(PLUGINS)
        $(INSTALL) -d $(LIBDIR)
        $(INSTALL) $? $(LIBDIR)
-       for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d LIBDIR=$(LIBDIR) install; done
+       for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d INSTALL=$(INSTALL) \
+                               LIBDIR=$(LIBDIR) install; done
 
 clean:
        rm -f *.o *.so *.a