]> git.ozlabs.org Git - ppp.git/blob - pppd/Makefile.sol2
Added tdb.c and multilink.c to be part of the compilation, otherwise,
[ppp.git] / pppd / Makefile.sol2
1 #
2 # Makefile for pppd under Solaris 2.
3 # $Id: Makefile.sol2,v 1.17 2000/04/06 23:03:28 masputra Exp $
4 #
5
6 include ../svr4/Makedefs
7
8 COPTS   += -xO2 -xspace -W0,-Lt
9 CFLAGS  =  -I../include -DSVR4 -DSOL2 $(COPTS)
10 LIBS    = -lsocket -lnsl
11
12 OBJS    =  main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o \
13         ccp.o auth.o options.o demand.o utils.o sys-svr4.o tdb.o \
14         multilink.o
15
16 #
17 # uncomment the following to enable plugins
18 #
19 CFLAGS  += -DPLUGIN
20 LIBS    += -ldl
21
22 #
23 # Solaris 8 and above accomodates /var/run, so uncomment the
24 # following to place pppd process IDs on that location
25 #
26 #CFLAGS += -D_PATH_VARRUN='"/var/run/"'
27
28 #
29 # uncomment the following to enable IPv6
30 #
31 # Solaris 8 and on includes support for IPv6
32 #
33 #CFLAGS += -DINET6
34 #OBJS   += ipv6cp.o eui64.o
35
36 #
37 # Make targets
38 #
39 all: pppd
40
41 pppd:   $(OBJS)
42         $(CC) -o pppd $(OBJS) $(LIBS)
43
44 install:
45         $(INSTALL) -f $(BINDIR) -m 4755 -u root pppd
46         $(INSTALL) -f $(MANDIR)/man8 -m 444 pppd.8
47
48 clean:
49         rm -f $(OBJS) pppd *~ core y.tab.c y.tab.h