X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=933309697356a0dd19b90ecd09a1e62de1d405a7;hb=26a7a28f129d72feaa08ef589e9a49aafd16d984;hp=311cc1886c049c093ed1ea32c826f9e853df40d2;hpb=0e3ef87b18e5b71756b5b78e30775697573aac61;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 311cc18..9333096 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.19 1997/03/04 03:35:05 paulus Exp $ # # Default installation locations @@ -28,7 +28,7 @@ endif # COPTS = -O2 # -g VER = 2.3.0 -LIBS = -lc -lbsd +LIBS = -lcrypt -lbsd # 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 +40,27 @@ COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) +ifdef CHAPMS +CFLAGS += -DCHAPMS=1 +LIBS := -ldes $(LIBS) +PPPDOBJS += md4.o chap_ms.o +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