mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-30 15:03:36 +08:00
f9eac6e29b
of the 'svr4' directory. However, over time, files in this directory will contain the same code as the kernel-portion of pppd in future releases of Solaris, hence they most probably will change in contents and/or sub-structure. 2) Changed the 'configure' script to not create symbolic link Makefiles when the OS is SunOS 4.x. Under 'SunOS' category, only SunOS 5.x (or Solaris 2.x) is currently enabled. 3) Changed the rest of the utilities + pppd daemon Makefile.sol2 to point to the solaris/Makedefs instead of the one in svr4 directory.
67 lines
1.5 KiB
Makefile
67 lines
1.5 KiB
Makefile
#
|
|
# Makefile for STREAMS modules for Solaris 2.
|
|
#
|
|
# $Id: Makefile.sol2,v 1.1 2000/04/18 23:51:27 masputra Exp $
|
|
#
|
|
|
|
include Makedefs.sol2
|
|
|
|
COPTS += -xO2 -xspace -W0,-Lt
|
|
|
|
COMP_OBJS = ppp_comp.o bsd-comp.o deflate.o zlib.o vjcompress.o \
|
|
ppp_comp_mod.o
|
|
|
|
all: ppp ppp_ahdl ppp_comp
|
|
|
|
ppp: ppp.o ppp_mod.o
|
|
ld -r -o $@ ppp.o ppp_mod.o
|
|
chmod +x $@
|
|
|
|
ppp_ahdl: ppp_ahdlc.o ppp_ahdlc_mod.o
|
|
ld -r -o $@ ppp_ahdlc.o ppp_ahdlc_mod.o
|
|
chmod +x $@
|
|
|
|
ppp_comp: $(COMP_OBJS)
|
|
ld -r -o $@ $(COMP_OBJS)
|
|
chmod +x $@
|
|
|
|
bsd-comp.o: ../modules/bsd-comp.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
deflate.o: ../modules/deflate.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp.o: ppp.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp_mod.o: ppp_mod.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp_ahdlc_mod.o: ppp_ahdlc_mod.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp_ahdlc.o: ppp_ahdlc.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp_comp.o: ppp_comp.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
ppp_comp_mod.o: ppp_comp_mod.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
vjcompress.o: ../modules/vjcompress.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
zlib.o: ../common/zlib.c
|
|
$(CC) $(CFLAGS) -c $?
|
|
|
|
install:
|
|
cp ppp ppp.conf /kernel/drv
|
|
cp ppp_comp ppp_ahdl /kernel/strmod
|
|
if grep clone:ppp /etc/minor_perm; then :; else \
|
|
echo clone:ppp 0644 root sys >>/etc/minor_perm; fi
|
|
/usr/sbin/rem_drv ppp 2>/dev/null || true
|
|
/usr/sbin/add_drv ppp
|
|
|
|
SRCS = ppp.c ppp_mod.c ppp_ahdlc.c ppp_ahdlc_mod.c \
|
|
ppp_comp.c ../modules/bsd-comp.c ../modules/deflate.c \
|
|
../common/zlib.c ../modules/vjcompress.c ppp_comp_mod.c
|
|
|
|
lint:
|
|
$(LINT32) $(SRCS)
|
|
|
|
clean:
|
|
rm -f ppp ppp_comp ppp_ahdl *.o *~ core
|
|
rm -f *.ln
|