From eda6d3a9f0b97d7220ba38333806978f337e6d46 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 1 Jul 1996 01:05:27 +0000 Subject: [PATCH] updates from Al --- pppd/Makefile.linux | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index a6c3003..13d9a1b 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,10 +1,11 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.12 1996/05/28 00:53:30 paulus Exp $ +# $Id: Makefile.linux,v 1.13 1996/07/01 01:05:27 paulus Exp $ # 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 \ + demand.c HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \ ipxcp.h MANPAGES = pppd.8 @@ -17,17 +18,26 @@ all: pppd # include dependancies if present and backup if as a header file ifeq (.depend,$(wildcard .depend)) include .depend -HEADERS := $(HEADERS) .depend endif # CC = gcc # DEBUG_FLAGS = -DDEBUGALL -COMPILE_FLAGS = -D_linux_=1 -DHAVE_PATHS_H +# COPTS = -O2 # -g -VER = 0.2.8 +VER = 2.3.0 LIBS = -lbsd +YACC = bison -y +LEX = flex + +# 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= -CFLAGS= $(COPTS) $(DEBUG_FLAGS) $(COMPILE_FLAGS) +COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H + +CFLAGS= $(COPTS) $(DEBUG_FLAGS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) ifdef USE_MS_DNS CFLAGS += -DUSE_MS_DNS=1 @@ -43,6 +53,11 @@ CFLAGS += -DHAS_SHADOW LIBS += -lshadow endif +ifdef USE_PAM +CFLAGS += -DUSE_PAM +LIBS += -lpam -ldl +endif + install: pppd mkdir -p $(BINDIR) $(MANDIR) install -s -c -m 4555 -o root pppd $(BINDIR)/pppd -- 2.39.2