]> git.ozlabs.org Git - ppp.git/blob - NeXT/Makefile
Merge in 1.3 and post 1.3 fixes; some of them might be applicable to
[ppp.git] / NeXT / Makefile
1 #
2 # Makefile for NeXT OS 3.2
3 #
4 # $Id: Makefile,v 1.3 1998/03/26 02:51:37 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 # OPTIMIZE_PPPREND Enable an optimization supported by the NeXT serial
33 #                  drivers.  Basically they buffer characters for an
34 #                  interrupt and call ppprend.
35 #
36 # NEW_CLOCAL     Used to enable the new code that sets CLOCAL.  Else,
37 #                the old code is used.
38 #
39
40 DFLAGS = -D_POSIX_SOURCE -DINET -DKERNEL -DMACH -DPOSIX_KERN \
41         -DNUM_PPP=2 -DVJC -DPPP_COMPRESS \
42         -DDEBUG -DNEW_CLOCAL -DOPTIMIZE_PPPREND
43
44 IFLAGS = -I. -I../include -I../pppd
45
46 CFLAGS = -O -g -pipe $(ARCHFLAGS) $(DFLAGS) $(IFLAGS) 
47
48 OBJS = bsd-comp.o if_ppp.o ppp_tty.o vjcompress.o
49 SRCS = $(OBJS:.o=.c)
50
51
52 #
53 # Default target
54 #
55 all:    ppp_reloc
56
57
58 install: all
59         /bin/mkdirs $(ETCDIR) $(LKS_DIR)
60         if (test ! -r /etc/ppp) then (ln -s $(ETCDIR) /etc/ppp) fi
61         install -c -m 644 -o root -g daemon ppp_reloc $(LKS_DIR)
62         touch $(ETCDIR)/options
63
64 ppp_reloc:      $(OBJS) Load_Commands.sect Unload_Commands.sect
65         kl_ld $(ARCHFLAGS) -n ppp -l Load_Commands.sect -u Unload_Commands.sect \
66                -d ppp_loadable -i instance -o $@ $(OBJS)
67
68 clean:
69         rm -f ppp_reloc ppp_loadable core make $(OBJS) *~ 
70
71
72 $(SRCS): if_pppvar.h nbq.h inlines.h Makefile