2 CFLAGS = -g -O2 -I.. -I../../include -fPIC
4 INSTALL = install -o root
7 # Uncomment the next line to include the radius authentication plugin
9 PLUGINS := minconn.so passprompt.so passwordfd.so
11 # include dependencies if present
12 ifeq (.depend,$(wildcard .depend))
17 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all; done
20 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
22 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
23 LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION)
26 $(INSTALL) -d $(LIBDIR)
27 $(INSTALL) $? $(LIBDIR)
28 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d INSTALL=$(INSTALL) \
29 LIBDIR=$(LIBDIR) install; done
33 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done
36 $(CPP) -M $(CFLAGS) *.c >.depend
37 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done