Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (82 sloc) 2.74 KB
# Makefile for the capiplugin for pppd(8).
#
# Copyright 2000 Carsten Paeth (calle@calle.in-berlin.de)
# Copyright 2000 AVM GmbH Berlin (info@avm.de)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
export TOPDIR=$(shell pwd)
export CAPIINC=$(TOPDIR)/../capi20
export CAPILIB=$(TOPDIR)/../capi20
export INSTALL=$(TOPDIR)/install-sh -c
export INSTALLDATA=$(TOPDIR)/install-sh -c -m 600
export MKDIR=$(TOPDIR)/mkinstalldirs
export PPPINC=/usr/include/pppd
ifeq ($(PPPVERSION),)
PPPVERSION_XX=$(shell grep VERSION $(PPPINC)/patchlevel.h)
PPPVERSION=$(word 3,$(PPPVERSION_XX))
endif
PEERDIR=${DESTDIR}/etc/ppp/peers/isdn
DRDSLDIR=${DESTDIR}/etc/drdsl
PEERS= arcor otelo talkline avm avm-ml leased
DRDSLFILES = adsl.conf
ALL = capiplugin.so userpass.so
#all: pversion
# @for i in $(PPPVERSIONS) ; do \
# echo $(MAKE) -C ppp-$$i PPPVERSION=$$i $@ ; \
# $(MAKE) -C ppp-$$i PPPVERSION=$$i $@ ; \
# done
all: pversion ppp-$(PPPVERSION)
echo $(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION)
$(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION)
ppp-$(PPPVERSION):
$(MKDIR) ppp-$(PPPVERSION)
echo created ppp-$(PPPVERSION)
cp Makefile.template ppp-$(PPPVERSION)/Makefile
distclean: clean
clean:
echo $(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION) $@ ;
$(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION) $@ ;
install-peers:
$(MKDIR) $(PEERDIR)
@for i in $(PEERS); do \
echo $(INSTALLDATA) peers/$$i $(PEERDIR); \
$(INSTALLDATA) peers/$$i $(PEERDIR); \
done
install-drdsl:
$(MKDIR) $(DRDSLDIR)
@for i in $(DRDSLFILES); do \
if [ -f $(DRDSLDIR)/$$i ] ; then \
echo $(DRDSLDIR)/$$i already exists ; \
else \
echo $(INSTALLDATA) examples/$$i $(DRDSLDIR); \
$(INSTALLDATA) examples/$$i $(DRDSLDIR); \
fi \
done
install-man:
for i in ${DESTDIR}/usr/share/man ${DESTDIR}/usr/man; do \
if [ -d $$i/man8 ] ; then \
echo $(INSTALLDATA) capiplugin.8 $$i/man8; \
$(INSTALLDATA) capiplugin.8 $$i/man8; \
fi ; \
done
install:
echo $(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION) $@ ;
$(MAKE) -C ppp-$(PPPVERSION) PPPVERSION=$(PPPVERSION) $@ ;
$(MAKE) install-peers
$(MAKE) install-drdsl
$(MAKE) install-man
srcsetup:
@for v in $(PPPVERSIONS) ; do \
$(MKDIR) ppp-$$v/pppd ; \
echo $(INSTALL) Makefile.template ppp-$$v/Makefile ; \
$(INSTALL) Makefile.template ppp-$$v/Makefile ; \
for h in pppd.h patchlevel.h ; do \
echo $(INSTALL) $(PPPSRCDIRS)/ppp-$$v/pppd/$$h ppp-$$v/pppd ; \
$(INSTALL) $(PPPSRCDIRS)/ppp-$$v/pppd/$$h ppp-$$v/pppd ; \
done \
done
config:
@echo nothing to configure
Something went wrong with that request. Please try again.