#
# Makefile for pppd under Solaris 2.
-# $Id: Makefile.sol2,v 1.13 1999/09/16 01:16:59 masputra Exp $
+# $Id: Makefile.sol2,v 1.28 2007/06/19 02:08:35 carlsonj Exp $
#
-include ../svr4/Makedefs
+include ../Makedefs.com
-CFLAGS = -DSVR4 -DSOL2 -I../include $(COPTS)
+CFLAGS = -I../include -DSVR4 -DSOL2 $(COPTS) '-DDESTDIR="@DESTDIR@"'
LIBS = -lsocket -lnsl
-OBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o \
- ccp.o auth.o options.o demand.o utils.o sys-svr4.o
+OBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o eap.o md5.o \
+ tty.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-solaris.o \
+ chap-md5.o session.o
#
# uncomment the following to enable plugins
#
-CFLAGS += -DPLUGIN
-LIBS += -ldl
+CFLAGS += -DPLUGIN
+LIBS += -ldl
+
+#
+# Solaris 8 and above accomodates /var/run, so uncomment the
+# following to place pppd process IDs on that location
+#
+#CFLAGS += -D_PATH_VARRUN='"/var/run/"'
+
+#
+# uncomment the following to enable IPv6
+#
+# Solaris 8 and on includes support for IPv6
+#
+#CFLAGS += -DINET6
+#OBJS += ipv6cp.o eui64.o
+
+# Uncomment to enable MS-CHAP
+#CFLAGS += -DUSE_CRYPT -DCHAPMS -DHAVE_CRYPT_H
+#OBJS += chap_ms.o pppcrypt.o md4.o sha1.o
+
+# Uncomment for CBCP
+#CFLAGS += -DCBCP_SUPPORT
+#OBJS += cbcp.o
+
+# Uncomment for PAM
+#CFLAGS += -DUSE_PAM
+#LIBS += -lpam
#
# Make targets