3 CFLAGS = $(COPTS) -I.. -I../../include -fPIC
4 LDFLAGS_SHARED = -shared
8 CFLAGS += -DUSE_EAPTLS=1
10 DESTDIR = $(INSTROOT)@DESTDIR@
11 BINDIR = $(DESTDIR)/sbin
12 MANDIR = $(DESTDIR)/share/man/man8
13 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
15 SUBDIRS := rp-pppoe pppoatm pppol2tp
16 # Uncomment the next line to include the radius authentication plugin
18 PLUGINS := minconn.so passprompt.so passwordfd.so winbind.so
20 # This setting should match the one in ../Makefile.linux
27 # include dependencies if present
28 ifeq (.depend,$(wildcard .depend))
33 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all || exit $$?; done
36 $(CC) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED) $(CFLAGS) $^
38 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
41 $(INSTALL) -d $(LIBDIR)
42 $(INSTALL) $? $(LIBDIR)
43 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install || exit $$?; done
47 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean || exit $$?; done
50 $(CPP) -M $(CFLAGS) *.c >.depend
51 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend || exit $$?; done