2 # Makefile for NeXT OS 3.2
4 # $Id: Makefile,v 1.2 1997/04/30 05:39:28 paulus Exp $
7 #ARCHFLAGS = -arch i386 -arch m68k
10 BINDIR = /usr/local/ppp/bin
11 MANDIR = /usr/local/ppp/man
12 ETCDIR = /usr/local/ppp/etc
15 # If you change this pathname, you must also change the path
16 # in and rc.local (or rc.ppp).
18 LKS_DIR=/usr/local/ppp/reloc
21 # NUM_PPP=x The number of ppp interfaces you want to create
23 # VJC If defined, enables VJ header compression
25 # PPP_COMPRESS If defined, enables BSD packet compression
27 # HAS_BROKEN_TIOCSPGRP Fixes broken IOCTL with NeXT serial drivers
29 # OLD_MUX Fixes double buffer problem with the MuX serial
32 # NBPFILTER If defined, adds hooks for the Berkley Packet Filter
33 # If this symbol is defined, you must load the
34 # bpf_reloc LKS _BEFORE_ you load the ppp_reloc LKS.
35 # See the ./bpf directory for more information.
37 # NETBUF_PROXY Enable proxy routines for custom Netbuf handling
39 # CHECK_BOUNDS Turn on bounds checking on netbufs. NETBUF_PROXY
40 # must be enabled for this to work.
42 # OPTIMIZE_PPPREND Enable an optimization supported by the NeXT serial
43 # drivers. Basically they buffer characters for an
44 # interrupt and call ppprend.
46 # NEW_CLOCAL Used to enable the new code that sets CLOCAL. Else,
47 # the old code is used.
52 DFLAGS = -DINET -DKERNEL -DMACH -DPOSIX_KERN \
53 -DNUM_PPP=2 -DVJC -DPPP_COMPRESS \
54 -DDEBUG -DNEW_CLOCAL -DNBPFILTER -DOPTIMIZE_PPPREND
56 IFLAGS = -I. -I.. -I../pppd
58 CFLAGS = -pipe -posix $(ARCHFLAGS) $(DFLAGS) $(IFLAGS)
60 OBJS = bsd-comp.o if_ppp.o nbq.o ppp_tty.o vjcompress.o
68 cd bpf; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
72 /bin/mkdirs $(ETCDIR) $(LKS_DIR)
73 if (test ! -r /etc/ppp) then (ln -s $(ETCDIR) /etc/ppp) fi
74 install -c -m 644 -o root -g daemon ppp_reloc $(LKS_DIR)
75 touch $(ETCDIR)/options
76 cd bpf; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" install
78 ppp_reloc: $(OBJS) Load_Commands.sect Unload_Commands.sect
79 kl_ld $(ARCHFLAGS) -n ppp -l Load_Commands.sect -u Unload_Commands.sect \
80 -i instance -o $@ $(OBJS)
83 rm -f ppp_reloc ppp_loadable core make $(OBJS) *~
87 $(SRCS): if_pppvar.h nbq.h inlines.h Makefile