3 CFLAGS = $(COPTS) -I../.. -I../../../include -fPIC
7 #***********************************************************************
10 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
12 VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h)
15 PLUGIN_OBJS := pppoatm.o
18 # Do we have the ATM libraries installed? Set HAVE_LIBATM to use them,
19 # or leave it unset to build the few routines we actually _use_ into
20 # the plugin directly.
28 PLUGIN_OBJS += text2qos.o text2atm.o misc.o ans.o
35 $(PLUGIN): $(PLUGIN_OBJS)
36 $(CC) $(CFLAGS) -o $@ -shared $^ $(LIBS)
39 $(INSTALL) -d -m 755 $(LIBDIR)
40 $(INSTALL) -c -m 4550 $(PLUGIN) $(LIBDIR)
46 $(CC) $(CFLAGS) -c -o $@ $<