2 # Makefile for 64-bit STREAMS modules for Solaris 2.
4 # $Id: Makefile.sol2-64,v 1.1.1.4 2003/10/14 08:09:54 sparq Exp $
9 # Sun's cc flag for LP64 compilation / linkage
10 COPTS += -xchip=ultra -xarch=v9 -Wc,-xcode=abs32 -Wc,-Qiselect-regsym=0 -xO3 -xspace -W0,-Lt
12 # subdirectory where 64-bit objects / binaries will be placed
15 # Name of legacy Makefile (for 32-bit binaries)
16 STD_MAKE = Makefile.sol2
18 COMP_OBJS = $(LP64DIR)/ppp_comp.o $(LP64DIR)/bsd-comp.o \
19 $(LP64DIR)/deflate.o $(LP64DIR)/zlib.o $(LP64DIR)/vjcompress.o \
20 $(LP64DIR)/ppp_comp_mod.o
22 all: std_objs $(LP64DIR) ppp ppp_ahdl ppp_comp
25 $(MAKE) -f $(STD_MAKE) all
27 ppp: $(LP64DIR)/ppp.o $(LP64DIR)/ppp_mod.o
28 ld -r -o $(LP64DIR)/$@ $(LP64DIR)/ppp.o $(LP64DIR)/ppp_mod.o
29 chmod +x $(LP64DIR)/$@
31 ppp_ahdl: $(LP64DIR)/ppp_ahdlc.o $(LP64DIR)/ppp_ahdlc_mod.o
32 ld -r -o $(LP64DIR)/$@ $(LP64DIR)/ppp_ahdlc.o $(LP64DIR)/ppp_ahdlc_mod.o
33 chmod +x $(LP64DIR)/$@
35 ppp_comp: $(COMP_OBJS)
36 ld -r -o $(LP64DIR)/$@ $(COMP_OBJS)
37 chmod +x $(LP64DIR)/$@
39 $(LP64DIR)/bsd-comp.o: ../modules/bsd-comp.c
40 $(CC) $(CFLAGS) -c $? -o $@
41 $(LP64DIR)/deflate.o: ../modules/deflate.c
42 $(CC) $(CFLAGS) -c $? -o $@
43 $(LP64DIR)/ppp.o: ../modules/ppp.c
44 $(CC) $(CFLAGS) -c $? -o $@
45 $(LP64DIR)/ppp_mod.o: ppp_mod.c
46 $(CC) $(CFLAGS) -c $? -o $@
47 $(LP64DIR)/ppp_ahdlc_mod.o: ppp_ahdlc_mod.c
48 $(CC) $(CFLAGS) -c $? -o $@
49 $(LP64DIR)/ppp_ahdlc.o: ../modules/ppp_ahdlc.c
50 $(CC) $(CFLAGS) -c $? -o $@
51 $(LP64DIR)/ppp_comp.o: ../modules/ppp_comp.c
52 $(CC) $(CFLAGS) -c $? -o $@
53 $(LP64DIR)/ppp_comp_mod.o: ppp_comp_mod.c
54 $(CC) $(CFLAGS) -c $? -o $@
55 $(LP64DIR)/vjcompress.o: ../modules/vjcompress.c
56 $(CC) $(CFLAGS) -c $? -o $@
57 $(LP64DIR)/zlib.o: ../common/zlib.c
58 $(CC) $(CFLAGS) -c $? -o $@
64 cp ppp ppp.conf /kernel/drv
65 cp ppp_comp ppp_ahdl /kernel/strmod
66 cp $(LP64DIR)/ppp /kernel/drv/$(LP64DIR)
67 cp $(LP64DIR)/ppp_comp $(LP64DIR)/ppp_ahdl /kernel/strmod/$(LP64DIR)
68 if grep clone:ppp /etc/minor_perm; then :; else \
69 echo clone:ppp 0644 root sys >>/etc/minor_perm; fi
70 /usr/sbin/rem_drv ppp 2>/dev/null || true
73 SRCS = ../modules/ppp.c ppp_mod.c ../modules/ppp_ahdlc.c ppp_ahdlc_mod.c \
74 ../modules/ppp_comp.c ../modules/bsd-comp.c ../modules/deflate.c \
75 ../common/zlib.c ../modules/vjcompress.c ppp_comp_mod.c
84 $(MAKE) -f $(STD_MAKE) clean
85 rm -f $(LP64DIR)/ppp $(LP64DIR)/ppp_comp $(LP64DIR)/ppp_ahdl $(LP64DIR)/*.o $(LP64DIR)/*~ $(LP64DIR)/core