Add dummy have_route_to functions.
[mpls-ppp.git] / sunos4 / Makefile
blob01c7d1a1a76c0e0bb10bc7a5021dd48af9e6fa9f
2 # Makefile for STREAMS modules for SunOS 4.
4 # $Id: Makefile,v 1.9 1998/03/25 03:09:38 paulus Exp $
7 include Makedefs
9 LD = /usr/bin/ld # make sure we don't get gnu ld
11 # Defining __$(ARCH)__ is for gcc's broken version of sun/vddrv.h.
12 ARCH = `/bin/arch -k`
13 DEFINES= -DKERNEL -D_KERNEL -DSUNOS4 -D$(ARCH) -D__$(ARCH)__ \
14 -DDEBUG -DNO_DLPI -DSNIT_SUPPORT
15 CFLAGS= $(DEFINES) -I../include $(COPTS)
17 MODULES= ppp_mod.o ppp_ahdl_mod.o ppp_comp_mod.o if_ppp_mod.o
19 all: $(MODULES)
21 ppp_mod.o: ppp.o ppp_vdcmd.o
22 $(LD) -r -o ppp_mod.o ppp.o ppp_vdcmd.o
24 ppp_ahdl_mod.o: ppp_ahdlc.o ppp_ahdlc_vdcmd.o
25 $(LD) -r -o ppp_ahdl_mod.o ppp_ahdlc.o ppp_ahdlc_vdcmd.o
27 COMP_OBJS = ppp_comp.o bsd-comp.o deflate.o zlib.o vjcompress.o \
28 ppp_comp_vdcmd.o
29 ppp_comp_mod.o: $(COMP_OBJS)
30 $(LD) -r -o $@ $(COMP_OBJS)
32 if_ppp.o: ../modules/if_ppp.c
33 $(CC) $(CFLAGS) -c $?
34 bsd-comp.o: ../modules/bsd-comp.c
35 $(CC) $(CFLAGS) -c $?
36 deflate.o: ../modules/deflate.c
37 $(CC) $(CFLAGS) -c $?
38 ppp.o: ../modules/ppp.c
39 $(CC) $(CFLAGS) -c $?
40 ppp_ahdlc.o: ../modules/ppp_ahdlc.c
41 $(CC) $(CFLAGS) -c $?
42 ppp_comp.o: ../modules/ppp_comp.c
43 $(CC) $(CFLAGS) -c $?
44 vjcompress.o: ../modules/vjcompress.c
45 $(CC) $(CFLAGS) -c $?
46 zlib.o: ../common/zlib.c
47 $(CC) $(CFLAGS) -c $?
49 if_ppp_mod.o: if_ppp.o if_ppp_vdcmd.o
50 $(LD) -r -o if_ppp_mod.o if_ppp.o if_ppp_vdcmd.o
52 install: all
53 $(INSTALL) $(MODULES) $(BINDIR)
54 ./ppp.INSTALL
56 clean:
57 rm -f ppp ppp_comp ppp_ahdl *.o *~ core