diff options
author | xeb <xeb@mail.ru> | 2009-06-17 00:56:34 +0400 |
---|---|---|
committer | xeb <xeb@mail.ru> | 2009-06-17 00:56:34 +0400 |
commit | df2441c834cf341d9b969dacc2dd8dac07cd588e (patch) | |
tree | ca0c7d8bade520ac35f5cd5c34dec54b136bd491 /pptpd-1.3.3/plugins/Makefile | |
download | accel-ppp-xebd-df2441c834cf341d9b969dacc2dd8dac07cd588e.tar.gz accel-ppp-xebd-df2441c834cf341d9b969dacc2dd8dac07cd588e.zip |
initial import
Diffstat (limited to 'pptpd-1.3.3/plugins/Makefile')
-rw-r--r-- | pptpd-1.3.3/plugins/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pptpd-1.3.3/plugins/Makefile b/pptpd-1.3.3/plugins/Makefile new file mode 100644 index 0000000..059cba1 --- /dev/null +++ b/pptpd-1.3.3/plugins/Makefile @@ -0,0 +1,34 @@ +CC = gcc +COPTS = -O2 -g +CFLAGS = $(COPTS) -I.. -I../../include -fPIC +LDFLAGS = -shared +LDADD = -lutil +INSTALL = install -o root +prefix = /usr/local + +PLUGINS = pptpd-logwtmp.so + +# include dependencies if present +ifeq (.depend,$(wildcard .depend)) +include .depend +endif + +all: $(PLUGINS) + +%.so: %.c + $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD) + +LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd + +install: $(PLUGINS) + $(INSTALL) -d $(LIBDIR) + $(INSTALL) $? $(LIBDIR) + +uninstall: + rm -f $(LIBDIR)$(PLUGINS) + +clean: + rm -f *.o *.so *.a + +depend: + $(CPP) -M $(CFLAGS) *.c >.depend |