summaryrefslogtreecommitdiff
path: root/ppp/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-05-23 14:21:58 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-05-23 14:21:58 +0000
commit3403af6f5eba79740c98abb2678f9a66ef5a8190 (patch)
tree93415a9598e5363284832757de0596988a421aa6 /ppp/Makefile
parentdb9cffbffeedcde4ee52027160b96a2548262c5d (diff)
initial copy
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4335 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'ppp/Makefile')
-rw-r--r--ppp/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/ppp/Makefile b/ppp/Makefile
new file mode 100644
index 0000000..86b65a6
--- /dev/null
+++ b/ppp/Makefile
@@ -0,0 +1,29 @@
+#COPTS = -O2 -g
+
+-include ../makeopts
+
+CFLAGS += $(COPTS) -I.. -fPIC
+LDFLAGS += -shared
+
+INCLUDE_DIR = $(includedir)/pppd
+
+LIBDIR = $(libdir)/pppd/$(PPPD_VERSION)
+
+PLUGINS := zaptel.so
+
+all: $(PLUGINS)
+
+%.so: %.c
+ifeq (,$(PPPD_VERSION))
+ @echo "pppd version not found (in patchlevel.h)."
+ @echo "Install ppp source/headers and/or ./configure --with-ppp=PATH."
+ exit 1
+endif
+ $(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
+
+install: $(PLUGINS)
+ $(INSTALL) -d $(DESTDIR)$(LIBDIR)
+ $(INSTALL) -m 0644 $? $(DESTDIR)$(LIBDIR)
+
+clean:
+ rm -f *.o *.so *.a