2 # Makefile for STREAMS modules for SunOS 4.
4 # $Id: Makefile,v 1.9 1998/03/25 03:09:38 paulus Exp $
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.
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
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 \
29 ppp_comp_mod.o
: $(COMP_OBJS
)
30 $(LD
) -r
-o
$@
$(COMP_OBJS
)
32 if_ppp.o
: ..
/modules
/if_ppp.c
34 bsd-comp.o
: ..
/modules
/bsd-comp.c
36 deflate.o
: ..
/modules
/deflate.c
38 ppp.o
: ..
/modules
/ppp.c
40 ppp_ahdlc.o
: ..
/modules
/ppp_ahdlc.c
42 ppp_comp.o
: ..
/modules
/ppp_comp.c
44 vjcompress.o
: ..
/modules
/vjcompress.c
46 zlib.o
: ..
/common
/zlib.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
53 $(INSTALL
) $(MODULES
) $(BINDIR
)
57 rm -f ppp ppp_comp ppp_ahdl
*.o
*~ core