]> git.ozlabs.org Git - ppp.git/blob - NeXT/Makefile
include Makedefs
[ppp.git] / NeXT / Makefile
1 #
2 # Makefile for NeXT OS 3.2
3 #
4 # $Id: Makefile,v 1.2 1997/04/30 05:39:28 paulus Exp $
5 #
6
7 #ARCHFLAGS = -arch i386 -arch m68k
8 ARCHFLAGS =
9
10 BINDIR = /usr/local/ppp/bin
11 MANDIR = /usr/local/ppp/man
12 ETCDIR = /usr/local/ppp/etc
13
14 #
15 # If you change this pathname, you must also change the path
16 # in and rc.local (or rc.ppp).
17 #
18 LKS_DIR=/usr/local/ppp/reloc
19
20 #
21 # NUM_PPP=x      The number of ppp interfaces you want to create
22 #
23 # VJC            If defined, enables VJ header compression
24 #
25 # PPP_COMPRESS   If defined, enables BSD packet compression
26 #
27 # HAS_BROKEN_TIOCSPGRP Fixes broken IOCTL with NeXT serial drivers
28 #
29 # OLD_MUX        Fixes double buffer problem with the MuX serial
30 #                driver.
31 #
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.    
36 #
37 # NETBUF_PROXY   Enable proxy routines for custom Netbuf handling
38 #
39 # CHECK_BOUNDS   Turn on bounds checking on netbufs.  NETBUF_PROXY
40 #                must be enabled for this to work.
41 #
42 # OPTIMIZE_PPPREND Enable an optimization supported by the NeXT serial
43 #                  drivers.  Basically they buffer characters for an
44 #                  interrupt and call ppprend.
45 #
46 # NEW_CLOCAL     Used to enable the new code that sets CLOCAL.  Else,
47 #                the old code is used.
48 #
49 #
50 #
51
52 DFLAGS = -DINET -DKERNEL -DMACH -DPOSIX_KERN \
53         -DNUM_PPP=2 -DVJC -DPPP_COMPRESS \
54         -DDEBUG -DNEW_CLOCAL -DNBPFILTER -DOPTIMIZE_PPPREND
55
56 IFLAGS = -I. -I.. -I../pppd
57
58 CFLAGS = -pipe -posix $(ARCHFLAGS) $(DFLAGS) $(IFLAGS) 
59
60 OBJS = bsd-comp.o if_ppp.o nbq.o ppp_tty.o vjcompress.o
61 SRCS = $(OBJS:.o=.c)
62
63
64 #
65 # Default target
66 #
67 all:    ppp_reloc
68         cd bpf; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
69
70
71 install: 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
77
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)
81
82 clean:
83         rm -f ppp_reloc ppp_loadable core make $(OBJS) *~ 
84         cd bpf; $(MAKE) clean
85
86
87 $(SRCS): if_pppvar.h nbq.h inlines.h Makefile