1 # 2 # Makefile for pppd under Solaris 2. 3 # $Id: Makefile.sol2,v 1.30 2008/01/30 14:26:52 carlsonj Exp $ 4 # 5 6 include ../Makedefs.com 7 8 CFLAGS = -I../include -DSVR4 -DSOL2 $(COPTS) '-DDESTDIR="@DESTDIR@"' 9 LIBS = -lsocket -lnsl 10 11 OBJS = 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 session.o 14 15 # Solaris uses shadow passwords 16 CFLAGS += -DHAS_SHADOW 17 18 # 19 # Comment the following out to disable plugins 20 # 21 CFLAGS += -DPLUGIN 22 LIBS += -ldl 23 24 # 25 # Solaris 8 and above accomodates /var/run, so uncomment the 26 # following to place pppd process IDs on that location 27 # 28 #CFLAGS += -D_PATH_VARRUN='"/var/run/"' 29 30 # 31 # uncomment the following to enable IPv6 32 # 33 # Solaris 8 and on includes support for IPv6 34 # 35 CFLAGS += -DINET6 36 OBJS += ipv6cp.o eui64.o 37 38 # Uncomment to enable MS-CHAP 39 CFLAGS += -DUSE_CRYPT -DCHAPMS -DMSLANMAN -DHAVE_CRYPT_H 40 OBJS += chap_ms.o pppcrypt.o md4.o sha1.o 41 42 # Uncomment for CBCP 43 #CFLAGS += -DCBCP_SUPPORT 44 #OBJS += cbcp.o 45 46 # Uncomment for PAM 47 #CFLAGS += -DUSE_PAM 48 #LIBS += -lpam 49 50 # 51 # Make targets 52 # 53 all: pppd 54 55 pppd: $(OBJS) 56 $(CC) -o pppd $(OBJS) $(LIBS) 57 58 install: 59 $(INSTALL) -f $(BINDIR) -m 4755 -u root pppd 60 $(INSTALL) -f $(MANDIR)/man8 -m 444 pppd.8 61 62 clean: 63 rm -f $(OBJS) pppd *~ core y.tab.c y.tab.h 64