2 # Makefile for STREAMS modules for Solaris 2.
4 # $Id: Makefile.sol2,v 1.3 2004/11/15 00:57:54 carlsonj 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
36 ppp_ahdlc_mod.o: ppp_ahdlc_mod.c
38 ppp_ahdlc.o: ppp_ahdlc.c
40 ppp_comp.o: 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 /usr/sbin/modunload -i 0
51 cp ppp ppp.conf /kernel/drv
52 cp ppp_comp ppp_ahdl /kernel/strmod
53 if grep clone:ppp /etc/minor_perm; then :; else \
54 echo clone:ppp 0644 root sys >>/etc/minor_perm; fi
55 /usr/sbin/rem_drv ppp 2>/dev/null || true
56 /usr/sbin/modunload -i 0
59 SRCS = ppp.c ppp_mod.c ppp_ahdlc.c ppp_ahdlc_mod.c \
60 ppp_comp.c ../modules/bsd-comp.c ../modules/deflate.c \
61 ../common/zlib.c ../modules/vjcompress.c ppp_comp_mod.c
67 rm -f ppp ppp_comp ppp_ahdl *.o *~ core