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 # This setting should match the one in ../Makefile.linux
24 # include dependencies if present
25 ifeq (.depend,$(wildcard .depend))
30 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all || exit $$?; done
33 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
35 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
38 $(INSTALL) -d $(LIBDIR)
39 $(INSTALL) $? $(LIBDIR)
40 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install || exit $$?; done
44 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean || exit $$?; done
47 $(CPP) -M $(CFLAGS) *.c >.depend
48 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend || exit $$?; done