3 CFLAGS = $(COPTS) -I.. -I../../include -fPIC
7 DESTDIR = $(INSTROOT)@DESTDIR@
8 BINDIR = $(DESTDIR)/sbin
9 MANDIR = $(DESTDIR)/share/man/man8
10 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
12 SUBDIRS := rp-pppoe pppoatm pppol2tp
13 # Uncomment the next line to include the radius authentication plugin
15 PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so
17 # include dependencies if present
18 ifeq (.depend,$(wildcard .depend))
23 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all; done
26 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
28 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
31 $(INSTALL) -d $(LIBDIR)
32 $(INSTALL) $? $(LIBDIR)
33 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install; done
37 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done
40 $(CPP) -M $(CFLAGS) *.c >.depend
41 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done