diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 14:21:58 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 14:21:58 +0000 |
commit | 3403af6f5eba79740c98abb2678f9a66ef5a8190 (patch) | |
tree | 93415a9598e5363284832757de0596988a421aa6 /ppp/Makefile | |
parent | db9cffbffeedcde4ee52027160b96a2548262c5d (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/Makefile | 29 |
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 |