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