]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/Makefile.linux
Make the example plugins here export the version number that they
[ppp.git] / pppd / plugins / Makefile.linux
index b7a7db0b355e04c3116c291b1f8978a2ca5cc4bc..a64256461ba48a2689b8dcc583f221fe509dec28 100644 (file)
@@ -1,6 +1,7 @@
 CC     = gcc
 CFLAGS = -g -O2 -I.. -I../../include -fPIC
 LDFLAGS        = -shared
+INSTALL        = install
 
 all:   minconn.so passprompt.so
 
@@ -9,3 +10,10 @@ minconn.so: minconn.c
 
 passprompt.so: passprompt.c
        $(CC) -o $@ $(LDFLAGS) $(CFLAGS) passprompt.c
+
+LIBDIR = /usr/lib/pppd
+
+install: minconn.so passprompt.so
+       version=`awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h`; \
+       $(INSTALL) -d $(LIBDIR)/$$version; \
+       $(INSTALL) $? $(LIBDIR)/$$version
\ No newline at end of file