X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2FMakefile.linux;h=1d5e75e7e31b5672a909bbebb1aff3c1d67870ed;hp=311cc1886c049c093ed1ea32c826f9e853df40d2;hb=b326c62b2f2eaeafd0b6a11cecdb11faa31ff38b;hpb=0e3ef87b18e5b71756b5b78e30775697573aac61 diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 311cc18..1d5e75e 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.17 1996/10/08 04:35:01 paulus Exp $ +# $Id: Makefile.linux,v 1.21 1997/07/14 03:52:08 paulus Exp $ # # Default installation locations @@ -27,8 +27,12 @@ endif # CC = gcc # COPTS = -O2 # -g -VER = 2.3.0 -LIBS = -lc -lbsd +VER = 2.3.1 +LIBS = + +ifneq ($(wildcard /usr/lib/libcrypt*),) +LIBS += -lcrypt +endif # The INCLUDE_DIRS must include the standard headers before the local # ones. If you just had -I.. then the order would be reversed. So, use @@ -40,14 +44,34 @@ COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) +ifdef CHAPMS +CFLAGS += -DCHAPMS=1 +ifndef USE_CRYPT +LIBS := -ldes $(LIBS) +else +CFLAGS += -DUSE_CRYPT=1 +endif +PPPDOBJS += md4.o chap_ms.o +ifdef MSLANMAN +CFLAGS += -DMSLANMAN=1 +endif +endif + ifdef HAS_SHADOW CFLAGS += -DHAS_SHADOW -LIBS += -lshadow +LIBS := -lshadow -lcrypt $(LIBS) endif +# For "Pluggable Authentication Modules", see ftp.redhat.com:/pub/pam/. ifdef USE_PAM CFLAGS += -DUSE_PAM -LIBS += -lpam -ldl +LIBS := -lpam -ldl $(LIBS) +endif + +# Lock library binary for Linux is included in 'linux' subdirectory. +ifdef LOCKLIB +LIBS := -llock $(LIBS) +CFLAGS += -DLOCKLIB=1 endif install: pppd