2 # Makefile for STREAMS modules for Solaris 2.
4 # $Id: Makefile.sol2,v 1.18 1999/09/21 20:37:20 masputra Exp $
9 COPTS += -xO2 -xspace -W0,-Lt
11 COMP_OBJS = ppp_comp.o bsd-comp.o deflate.o zlib.o vjcompress.o \
14 all: ppp ppp_ahdl ppp_comp
17 ld -r -o $@ ppp.o ppp_mod.o
20 ppp_ahdl: ppp_ahdlc.o ppp_ahdlc_mod.o
21 ld -r -o $@ ppp_ahdlc.o ppp_ahdlc_mod.o
24 ppp_comp: $(COMP_OBJS)
25 ld -r -o $@ $(COMP_OBJS)
28 bsd-comp.o: ../modules/bsd-comp.c
30 deflate.o: ../modules/deflate.c
32 ppp.o: ../modules/ppp.c
36 ppp_ahdlc_mod.o: ppp_ahdlc_mod.c
38 ppp_ahdlc.o: ../modules/ppp_ahdlc.c
40 ppp_comp.o: ../modules/ppp_comp.c
42 ppp_comp_mod.o: ppp_comp_mod.c
44 vjcompress.o: ../modules/vjcompress.c
46 zlib.o: ../common/zlib.c
50 cp ppp ppp.conf /kernel/drv
51 cp ppp_comp ppp_ahdl /kernel/strmod
52 if grep clone:ppp /etc/minor_perm; then :; else \
53 echo clone:ppp 0644 root sys >>/etc/minor_perm; fi
54 /usr/sbin/rem_drv ppp 2>/dev/null || true
57 SRCS = ../modules/ppp.c ppp_mod.c ../modules/ppp_ahdlc.c ppp_ahdlc_mod.c \
58 ../modules/ppp_comp.c ../modules/bsd-comp.c ../modules/deflate.c \
59 ../common/zlib.c ../modules/vjcompress.c ppp_comp_mod.c
65 rm -f ppp ppp_comp ppp_ahdl *.o *~ core