X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=f36d841686276b3fb9c4589d4403c3df23e84f50;hb=2c872bc67b83b91ba6390f6e5e72be08e09811a1;hp=67c012cb10c794ffbbc1dcd6fe3886d49a485ef2;hpb=a8ac4606ea90b5951d701b303e0ddcb87934c9e1;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 67c012c..f36d841 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.32 1999/08/12 03:59:07 paulus Exp $ +# $Id: Makefile.linux,v 1.36 2000/03/27 06:02:59 paulus Exp $ # # Default installation locations @@ -29,7 +29,7 @@ endif COPTS = -O2 -pipe -Wall -g LIBS = -ifneq ($(wildcard /usr/lib/libcrypt*),) +ifneq ($(wildcard /usr/lib/libcrypt.*),) LIBS += -lcrypt endif @@ -37,17 +37,20 @@ endif # MS-CHAP authentication protocol. CHAPMS=y USE_CRYPT=y -ifneq ($(wildcard /usr/lib/libcrypt*),) +ifneq ($(wildcard /usr/lib/libcrypt.*),) HAVE_CRYPT_H=y endif HAS_SHADOW=y #USE_PAM=y +#HAVE_INET6=y + +PLUGIN=y INCLUDE_DIRS= -I../include -COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE +COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) @@ -84,6 +87,20 @@ LIBS := -llock $(LIBS) CFLAGS += -DLOCKLIB=1 endif +ifdef PLUGIN +CFLAGS += -DPLUGIN +LDFLAGS += -Wl,-E +LIBS += -ldl +endif + +ifdef HAVE_INET6 + PPPDSRCS += ipv6cp.c eui64.c + HEADERS += ipv6cp.h eui64.h + PPPDOBJS += ipv6cp.o eui64.o + CFLAGS += -DINET6=1 +endif + + INSTALL= install -o root install: pppd @@ -94,7 +111,7 @@ install: pppd $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8 pppd: $(PPPDOBJS) - $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS) clean: rm -f $(PPPDOBJS) pppd *~ #* core