• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6include ../Makedefs.com
7
8CFLAGS	=  -I../include -DSVR4 -DSOL2 $(COPTS) '-DDESTDIR="@DESTDIR@"'
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 session.o
14
15# Solaris uses shadow passwords
16CFLAGS	+= -DHAS_SHADOW
17
18#
19# Comment the following out to disable plugins
20#
21CFLAGS	+= -DPLUGIN
22LIBS	+= -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#
35CFLAGS	+= -DINET6
36OBJS	+= ipv6cp.o eui64.o
37
38# Uncomment to enable MS-CHAP
39CFLAGS += -DUSE_CRYPT -DCHAPMS -DMSLANMAN -DHAVE_CRYPT_H
40OBJS += 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#
53all: pppd
54
55pppd:	$(OBJS)
56	$(CC) -o pppd $(OBJS) $(LIBS)
57
58install:
59	$(INSTALL) -f $(BINDIR) -m 4755 -u root pppd
60	$(INSTALL) -f $(MANDIR)/man8 -m 444 pppd.8
61
62clean:
63	rm -f $(OBJS) pppd *~ core y.tab.c y.tab.h
64