X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2FMakefile.linux;h=1bf7b1a85751b9e3b984a5329bb418f469f3e578;hp=fd60ee2925d48977201bc9c0c25fffc8a406d518;hb=262600f5df1461ecbd29ef3a2579e477bb397769;hpb=061ebeface7658cb2d76f9cc84dee16ba1e9b176 diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index fd60ee2..1bf7b1a 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.15 1996/09/14 05:13:45 paulus Exp $ +# $Id: Makefile.linux,v 1.23 1998/02/04 01:39:24 paulus Exp $ # # Default installation locations @@ -8,10 +8,10 @@ BINDIR = /usr/sbin MANDIR = /usr/man PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c ccp.c \ - ipxcp.c auth.c options.c sys-linux.c md4.c chap_ms.c \ + ipxcp.c auth.c options.c sys-linux.c md4.c chap_ms.c cbcp.c \ demand.c HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \ - ipxcp.h + ipxcp.h cbcp.h MANPAGES = pppd.8 PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o \ auth.o options.o demand.o sys-linux.o ipxcp.o @@ -27,8 +27,17 @@ endif # CC = gcc # COPTS = -O2 # -g -VER = 2.3.0 -LIBS = -lc -lbsd +VER = 2.3.3 +LIBS = + +ifneq ($(wildcard /usr/lib/libcrypt*),) +LIBS += -lcrypt +endif + +# Uncomment the next 2 lines to include support for Microsoft's +# MS-CHAP authentication protocol. +#CHAPMS=y +#USE_CRYPT=y # 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 @@ -36,18 +45,38 @@ LIBS = -lc -lbsd #INCLUDE_DIRS= -I/usr/include -I.. INCLUDE_DIRS= -COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -D__BSD_SOURCE -DIPX_CHANGE +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 $(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