3 CFLAGS = $(COPTS) -I.. -I../../include -fPIC
5 INSTALL = install -o root
8 # Uncomment the next line to include the radius authentication plugin
10 PLUGINS := minconn.so passprompt.so passwordfd.so
12 # include dependencies if present
13 ifeq (.depend,$(wildcard .depend))
18 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all; done
21 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
23 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)
24 LIBDIR = $(DESTDIR)/usr/lib/pppd/$(VERSION)
27 $(INSTALL) -d $(LIBDIR)
28 $(INSTALL) $? $(LIBDIR)
29 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d INSTALL=$(INSTALL) \
30 LIBDIR=$(LIBDIR) install; done
34 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done
37 $(CPP) -M $(CFLAGS) *.c >.depend
38 for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done