1# 2# Makefile for pppd under Solaris 2. 3# $Id: Makefile.sol2,v 1.26 2004/04/14 02:39:39 carlsonj Exp $ 4# 5 6include ../Makedefs.com 7 8CFLAGS = -I../include -DSVR4 -DSOL2 $(COPTS) 9LIBS = -lsocket -lnsl 10 11OBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o eap.o md5.o \ 12 tty.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-solaris.o \ 13 chap-md5.o 14 15# 16# uncomment the following to enable plugins 17# 18CFLAGS += -DPLUGIN 19LIBS += -ldl 20 21# 22# Solaris 8 and above accomodates /var/run, so uncomment the 23# following to place pppd process IDs on that location 24# 25#CFLAGS += -D_PATH_VARRUN='"/var/run/"' 26 27# 28# uncomment the following to enable IPv6 29# 30# Solaris 8 and on includes support for IPv6 31# 32#CFLAGS += -DINET6 33#OBJS += ipv6cp.o eui64.o 34 35# Uncomment to enable MS-CHAP 36#CFLAGS += -DUSE_CRYPT -DCHAPMS -DHAVE_CRYPT_H 37#OBJS += chap_ms.o pppcrypt.o md4.o sha1.o 38 39# Uncomment for CBCP 40#CFLAGS += -DCBCP_SUPPORT 41#OBJS += cbcp.o 42 43# 44# Make targets 45# 46all: pppd 47 48pppd: $(OBJS) 49 $(CC) -o pppd $(OBJS) $(LIBS) 50 51install: 52 $(INSTALL) -f $(BINDIR) -m 4755 -u root pppd 53 $(INSTALL) -f $(MANDIR)/man8 -m 444 pppd.8 54 55clean: 56 rm -f $(OBJS) pppd *~ core y.tab.c y.tab.h 57