]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/Makefile.linux
Change some Makefile.linux files to use COPTS and CFLAGS the same way
[ppp.git] / pppd / plugins / Makefile.linux
index 1cf721ae47ac40106c26eb869385739f1b6f2fce..2fabeba80eacb436014d472ef307cdb90746b0ba 100644 (file)
@@ -1,10 +1,13 @@
 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
 
-SUBDIRS = rp-pppoe radius
-PLUGINS = minconn.so passprompt.so passwordfd.so
+SUBDIRS := rp-pppoe
+# Uncomment the next line to include the radius authentication plugin
+# SUBDIRS += radius
+PLUGINS := minconn.so passprompt.so passwordfd.so
 
 # include dependencies if present
 ifeq (.depend,$(wildcard .depend))
@@ -18,7 +21,7 @@ all:  $(PLUGINS)
        $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
 
 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
-LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
+LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION)
 
 install: $(PLUGINS)
        $(INSTALL) -d $(LIBDIR)