X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2FMakefile.linux;h=ebe703e0386e1a04ff8f0fa6ac317c392ceddea6;hp=13d9a1b3f3de7fa7440c89bb8ff0fde5bcedd22e;hb=ef8c746d25d5c9bab2a8a8b28266cd19c4762291;hpb=eda6d3a9f0b97d7220ba38333806978f337e6d46 diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 13d9a1b..ebe703e 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,8 +1,12 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.13 1996/07/01 01:05:27 paulus Exp $ +# $Id: Makefile.linux,v 1.16 1996/09/26 06:19:57 paulus Exp $ # +# Default installation locations +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 \ demand.c @@ -21,13 +25,10 @@ include .depend endif # CC = gcc -# DEBUG_FLAGS = -DDEBUGALL # COPTS = -O2 # -g VER = 2.3.0 -LIBS = -lbsd -YACC = bison -y -LEX = flex +LIBS = -lc -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 @@ -35,18 +36,9 @@ LEX = flex #INCLUDE_DIRS= -I/usr/include -I.. INCLUDE_DIRS= -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 -endif +COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -ifdef IPX_CHANGE -CFLAGS += -DIPX_CHANGE=1 -PPPDOBJS += ipxcp.o -endif +CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) ifdef HAS_SHADOW CFLAGS += -DHAS_SHADOW @@ -64,7 +56,7 @@ install: pppd install -c -m 555 -o root pppd.8 $(MANDIR)/man8 pppd: $(PPPDOBJS) - $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS) # -Wl,-M >pppd.map + $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS) clean: rm -f $(PPPDOBJS) pppd *~ #* core