Cross Reference: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/Makefile
Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#
# ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/usr.bin/pppd/Makefile
#
include ../../../Makefile.cmd
include Makefile.def
PROG= pppd
SUBDIRS= plugins
OBJS= auth.o ccp.o chap.o demand.o fsm.o ipcp.o ipv6cp.o \
lcp.o magic.o main.o options.o sys-solaris.o upap.o utils.o \
multilink.o cbcp.o
# Object tdb.o used only for Multilink; not supported yet.
all:= TARGET= all
install:= TARGET= install
clean:= TARGET= clean
clobber:= TARGET= clobber
lint:= TARGET= lint
LDLIBS += -lpam -lmd5 -lsocket -lnsl
#
# We need absolute path to /etc/ppp/plugins and /usr/lib/inet/ppp, not
# that of the proto area
#
LDFLAGS += -R$(ETCPPPPLUGINDIR_ABS) -R$(LIBPPPPLUGINDIR_ABS)
CPPFLAGS += -DPLUGIN -DSVR4 -DSOL2 -DINET6
CPPFLAGS += -D_PATH_VARRUN='"/var/run/"'
CPPFLAGS += -DNEGOTIATE_FCS -DCBCP_SUPPORT -DALLOW_PAM -DHAS_SHADOW
CPPFLAGS += -DHAVE_MMAP -DCOMP_TUNE -DMUX_FRAME
$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
.KEEP_STATE:
.PARALLEL: $(SUBDIRS)
all: $(PROG) $(SUBDIRS)
# MS-CHAP support
CPPFLAGS += -DHAVE_CRYPT_H -DUSE_CRYPT
CPPFLAGS += -DCHAPMS -DMSLANMAN
CPPFLAGS += -DCHAPMSV2
OBJS += chap_ms.o md4.o sha1.o
EXOBJS += mschap_test.o
CLOBBERFILES += mschap_test
# This is used *only* for testing the portability of the libraries
# required for MS-CHAPv1. It is not needed in any normal system and
# is not built by default.
mschap_test: mschap_test.o chap_ms.o md4.o sha1.o
$(LINK.c) -o mschap_test mschap_test.o chap_ms.o md4.o sha1.o \
$(LDFLAGS)
@echo "Run with 'mschap_test 00000000000000000000000000000000 hello'"
@echo
@echo "Output should be:"
@echo
@echo " MS-CHAPv1 with LAN Manager -- 49 bytes:"
@echo " C9 CA EE 9B 1C A7 87 04"
@echo " 79 36 8C 55 AB 88 EC 5A"
@echo " 57 E9 A1 B7 95 40 C3 74"
@echo " F4 D9 9D AF 82 64 DC 3C"
@echo " 53 F9 BC 92 14 B5 5D 9E"
@echo " 78 C4 21 48 9D B7 A8 B4"
@echo " 01"
@echo " MS-CHAPv2 -- 49 bytes:"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " 00 00 00 00 00 00 00 00"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " 00"
LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
SRCS= $(OBJS:%.o=%.c)
.PARALLEL: $(OBJS)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
$(ROOTPROG):= FILEMODE = 04555
$(ROOTPROG):= OWNER = root
ASPPP2PPPD= $(ROOTUSRSBIN)/asppp2pppd
$(ASPPP2PPPD):= OWNER=root
$(ASPPP2PPPD):= GROUP=bin
$(ASPPP2PPPD):= FILEMODE = 0550
install: $(PROG) .WAIT $(SUBDIRS) $(ROOTPROG) $(ETCPPPDIR) $(ASPPP2PPPD)
$(ETCPPPDIR)/%: %
$(INS.file)
$(ETCPPPDIR):
$(INS.dir)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
LINTOBJS=$(OBJS:%.o=%.ln)
CLOBBERFILES += $(LINTOBJS)
clean: $(SUBDIRS)
$(RM) $(OBJS) $(EXOBJS)
sha1.ln:= LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
# Not using the default lint target here so that we can disable
# warnings per module as needed.
lint: $(SUBDIRS) $(LINTOBJS)
$(LINT.c) $(LINTOBJS) $(LDLIBS)
clobber: $(SUBDIRS)
include ../../../Makefile.targ