diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 21:48:55 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 21:48:55 +0000 |
commit | e2383cfa769550fd700038299bc477095057a9f6 (patch) | |
tree | c4f508460d4014e780cc94d93ddf536a685c96d4 /ppp/Makefile | |
parent | ae208f48dd39690ca18f5cd788af2200eb182297 (diff) |
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.2@2983 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 |