diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 21:53:26 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 21:53:26 +0000 |
commit | 48e940fa596dff43826ef278ca2efd23e5ee55f2 (patch) | |
tree | 995a1b50476b62a8b577fd6a6804a7d256ce04c1 /ppp/Makefile | |
parent | 430df6766c2102b68a35e49cafd139310d6c413c (diff) |
Merged revisions 2983 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2983 | kpfleming | 2007-08-30 16:48:55 -0500 (Thu, 30 Aug 2007) | 2 lines
add a proper plugin for Zaptel support in pppd, so that it can be used with any distro-supplied version of pppd instead of requiring a patched copy from the Digium download site
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2985 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ppp/Makefile')
-rw-r--r-- | ppp/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ppp/Makefile b/ppp/Makefile new file mode 100644 index 0000000..a068fa2 --- /dev/null +++ b/ppp/Makefile @@ -0,0 +1,25 @@ +CC = gcc +COPTS = -O2 -g +CFLAGS = $(COPTS) -I.. -fPIC +LDFLAGS = -shared +INSTALL = install + +DESTDIR = /usr + +VERSION := $(shell awk -F '"' '/VERSION/ { print $$2; }' $(DESTDIR)/include/pppd/patchlevel.h) + +LIBDIR := $(DESTDIR)/lib/pppd/$(VERSION) + +PLUGINS := zaptel.so + +all: $(PLUGINS) + +%.so: %.c + $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ + +install: $(PLUGINS) + $(INSTALL) -d $(LIBDIR) + $(INSTALL) -m 0644 $? $(LIBDIR) + +clean: + rm -f *.o *.so *.a |