get rid of warning
[mpls-ppp.git] / NeXT / Makefile
blobb39a849409022b57cc3e823ec65d1156c827e1aa
2 # Makefile for NeXT OS 3.2
4 # $Id: Makefile,v 1.3 1998/03/26 02:51:37 paulus Exp $
7 #ARCHFLAGS = -arch i386 -arch m68k
8 ARCHFLAGS =
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
30 # driver.
32 # OPTIMIZE_PPPREND Enable an optimization supported by the NeXT serial
33 # drivers. Basically they buffer characters for an
34 # interrupt and call ppprend.
36 # NEW_CLOCAL Used to enable the new code that sets CLOCAL. Else,
37 # the old code is used.
40 DFLAGS = -D_POSIX_SOURCE -DINET -DKERNEL -DMACH -DPOSIX_KERN \
41 -DNUM_PPP=2 -DVJC -DPPP_COMPRESS \
42 -DDEBUG -DNEW_CLOCAL -DOPTIMIZE_PPPREND
44 IFLAGS = -I. -I../include -I../pppd
46 CFLAGS = -O -g -pipe $(ARCHFLAGS) $(DFLAGS) $(IFLAGS)
48 OBJS = bsd-comp.o if_ppp.o ppp_tty.o vjcompress.o
49 SRCS = $(OBJS:.o=.c)
53 # Default target
55 all: ppp_reloc
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
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)
68 clean:
69 rm -f ppp_reloc ppp_loadable core make $(OBJS) *~
72 $(SRCS): if_pppvar.h nbq.h inlines.h Makefile