X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=NeXT%2FMakefile;h=b39a849409022b57cc3e823ec65d1156c827e1aa;hp=f3be5f6df51a16a34674bcde21f8d630a0d18643;hb=a83d9887bdc27bcbf285a3fd7964d2ddac52b1f5;hpb=ffed4c0be3569ea9c8901f66e67e289c11922692 diff --git a/NeXT/Makefile b/NeXT/Makefile index f3be5f6..b39a849 100755 --- a/NeXT/Makefile +++ b/NeXT/Makefile @@ -1,7 +1,7 @@ # # Makefile for NeXT OS 3.2 # -# $Id: Makefile,v 1.2 1997/04/30 05:39:28 paulus Exp $ +# $Id: Makefile,v 1.3 1998/03/26 02:51:37 paulus Exp $ # #ARCHFLAGS = -arch i386 -arch m68k @@ -29,16 +29,6 @@ LKS_DIR=/usr/local/ppp/reloc # OLD_MUX Fixes double buffer problem with the MuX serial # driver. # -# NBPFILTER If defined, adds hooks for the Berkley Packet Filter -# If this symbol is defined, you must load the -# bpf_reloc LKS _BEFORE_ you load the ppp_reloc LKS. -# See the ./bpf directory for more information. -# -# NETBUF_PROXY Enable proxy routines for custom Netbuf handling -# -# CHECK_BOUNDS Turn on bounds checking on netbufs. NETBUF_PROXY -# must be enabled for this to work. -# # OPTIMIZE_PPPREND Enable an optimization supported by the NeXT serial # drivers. Basically they buffer characters for an # interrupt and call ppprend. @@ -46,18 +36,16 @@ LKS_DIR=/usr/local/ppp/reloc # NEW_CLOCAL Used to enable the new code that sets CLOCAL. Else, # the old code is used. # -# -# -DFLAGS = -DINET -DKERNEL -DMACH -DPOSIX_KERN \ +DFLAGS = -D_POSIX_SOURCE -DINET -DKERNEL -DMACH -DPOSIX_KERN \ -DNUM_PPP=2 -DVJC -DPPP_COMPRESS \ - -DDEBUG -DNEW_CLOCAL -DNBPFILTER -DOPTIMIZE_PPPREND + -DDEBUG -DNEW_CLOCAL -DOPTIMIZE_PPPREND -IFLAGS = -I. -I.. -I../pppd +IFLAGS = -I. -I../include -I../pppd -CFLAGS = -pipe -posix $(ARCHFLAGS) $(DFLAGS) $(IFLAGS) +CFLAGS = -O -g -pipe $(ARCHFLAGS) $(DFLAGS) $(IFLAGS) -OBJS = bsd-comp.o if_ppp.o nbq.o ppp_tty.o vjcompress.o +OBJS = bsd-comp.o if_ppp.o ppp_tty.o vjcompress.o SRCS = $(OBJS:.o=.c) @@ -65,7 +53,6 @@ SRCS = $(OBJS:.o=.c) # Default target # all: ppp_reloc - cd bpf; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all install: all @@ -73,15 +60,13 @@ install: all if (test ! -r /etc/ppp) then (ln -s $(ETCDIR) /etc/ppp) fi install -c -m 644 -o root -g daemon ppp_reloc $(LKS_DIR) touch $(ETCDIR)/options - cd bpf; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" install ppp_reloc: $(OBJS) Load_Commands.sect Unload_Commands.sect kl_ld $(ARCHFLAGS) -n ppp -l Load_Commands.sect -u Unload_Commands.sect \ - -i instance -o $@ $(OBJS) + -d ppp_loadable -i instance -o $@ $(OBJS) clean: rm -f ppp_reloc ppp_loadable core make $(OBJS) *~ - cd bpf; $(MAKE) clean $(SRCS): if_pppvar.h nbq.h inlines.h Makefile