X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=67c012cb10c794ffbbc1dcd6fe3886d49a485ef2;hb=1a39a96301b795cda440a54192833c1ae96c7670;hp=1bf7b1a85751b9e3b984a5329bb418f469f3e578;hpb=262600f5df1461ecbd29ef3a2579e477bb397769;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 1bf7b1a..67c012c 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.23 1998/02/04 01:39:24 paulus Exp $ +# $Id: Makefile.linux,v 1.32 1999/08/12 03:59:07 paulus Exp $ # # Default installation locations @@ -9,12 +9,12 @@ 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 cbcp.c \ - demand.c + demand.c utils.c HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.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 + auth.o options.o demand.o utils.o sys-linux.o ipxcp.o all: pppd @@ -26,8 +26,7 @@ endif # CC = gcc # -COPTS = -O2 # -g -VER = 2.3.3 +COPTS = -O2 -pipe -Wall -g LIBS = ifneq ($(wildcard /usr/lib/libcrypt*),) @@ -36,14 +35,17 @@ endif # Uncomment the next 2 lines to include support for Microsoft's # MS-CHAP authentication protocol. -#CHAPMS=y -#USE_CRYPT=y +CHAPMS=y +USE_CRYPT=y +ifneq ($(wildcard /usr/lib/libcrypt*),) +HAVE_CRYPT_H=y +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 -# the default location for include files first before the .. location. -#INCLUDE_DIRS= -I/usr/include -I.. -INCLUDE_DIRS= +HAS_SHADOW=y +#USE_PAM=y + +INCLUDE_DIRS= -I../include COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE @@ -55,6 +57,9 @@ ifndef USE_CRYPT LIBS := -ldes $(LIBS) else CFLAGS += -DUSE_CRYPT=1 +ifneq ($(wildcard /usr/include/crypt.h),) +CFLAGS += -DHAVE_CRYPT_H=1 +endif endif PPPDOBJS += md4.o chap_ms.o ifdef MSLANMAN @@ -64,7 +69,7 @@ endif ifdef HAS_SHADOW CFLAGS += -DHAS_SHADOW -LIBS := -lshadow $(LIBS) +#LIBS := -lshadow $(LIBS) endif # For "Pluggable Authentication Modules", see ftp.redhat.com:/pub/pam/. @@ -79,10 +84,14 @@ LIBS := -llock $(LIBS) CFLAGS += -DLOCKLIB=1 endif +INSTALL= install -o root + install: pppd mkdir -p $(BINDIR) $(MANDIR) - install -s -c -m 4555 -o root pppd $(BINDIR)/pppd - install -c -m 555 -o root pppd.8 $(MANDIR)/man8 + $(INSTALL) -s -c -m 4550 pppd $(BINDIR)/pppd + if ! chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \ + chmod o+rx $(BINDIR)/pppd; fi + $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8 pppd: $(PPPDOBJS) $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS)