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 /Makefile | |
download | accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.tar.gz accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.zip |
initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..6fc51b3c --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +PPPD := $(shell /usr/sbin/pppd --version 2>&1 | grep version) +PPPD := $(patsubst pppd,,$(PPPD)) +PPPD := $(patsubst version,,$(PPPD)) +PPPD := $(strip $(PPPD)) + +default: module plugin pptpd +client: module plugin +server: default + +module: + echo Building kernel module + (cd kernel/driver; make ) + +plugin: pppd_plugin/Makefile + echo Building pppd plugin + (cd pppd_plugin; make) + +pptpd: pptpd-1.3.3/Makefile + echo Building pptpd + (cd pptpd-1.3.3; make) + +pppd_plugin/Makefile: pptpd-1.3.3/Makefile + (cd pppd_plugin; ./configure) + +pptpd-1.3.3/Makefile: + (cd pptpd-1.3.3; ./configure) + + +module_install: module + (cd kernel/driver; make install) + +plugin_install: plugin + install -m 0644 pppd_plugin/src/.libs/pptp.so.0.0.0 /usr/lib/pppd/$(PPPD)/pptp.so + +client_install: module_install plugin_install + +server_install: server module_install plugin_install + (cd pptpd-1.3.3; make install) + +clean: + (cd kernel/driver; make clean) + (cd pppd_plugin; make clean) + (cd pptpd-1.3.3; make clean) +distclean: + (cd kernel/driver; make clean) + (cd pppd_plugin; make distclean) + (cd pptpd-1.3.3; make distclean) |