X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2FMakefile.linux;h=36249a8e7b4faf8275a72e4aade013c15e6f3734;hp=e759a6192a420565c1086d182d771eb24eee823b;hb=09032f7c09a5ead7d5cd14a61d17d1d495bf80f5;hpb=0816630b7e90b23792599af619d6950841891b9b diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index e759a61..36249a8 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.18 1996/10/08 06:42:41 paulus Exp $ +# $Id: Makefile.linux,v 1.22 1997/11/27 06:07:12 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.2 +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 @@ -42,8 +46,15 @@ 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 @@ -57,6 +68,12 @@ CFLAGS += -DUSE_PAM 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 mkdir -p $(BINDIR) $(MANDIR) install -s -c -m 4555 -o root pppd $(BINDIR)/pppd