2 CFLAGS = -g -I.. -I../.. -I../../../include -D_linux_=1 -fPIC
4 INSTALL = install -o root
8 PLUGINDIR = $(LIBDIR)/plugins
9 PLUGINSRCS= pppoe.c libpppoe.c utils.c pppoehash.c pppoe_client.c \
10 pppoe_relay.c pppoe_server.c pppd_utils.c
12 # include dependencies if present
13 ifeq (.depend,$(wildcard .depend))
18 pppoefwd: pppoefwd.o libpppoe.a
21 pppoed: pppoed.o pppd_utils.o libpppoe.a
24 libpppoe.a: pppoehash.o pppoe_client.o pppoe_relay.o pppoe_server.o \
28 pppoe.so: pppoe.o libpppoe.a
29 $(CC) -o $@ $(LDFLAGS) $^
32 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
35 rm -f *.o *.so *.a pppoefwd pppoed
38 $(INSTALL) -d -m 755 $(LIBDIR)
39 $(INSTALL) -s -c -m 4550 pppoe.so $(LIBDIR)
42 $(CPP) -M $(CFLAGS) $(PLUGINSRCS) >.depend