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/rdist/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 PROG= rdist
28 28 OBJS= docmd.o expand.o lookup.o main.o server.o
29 29 KCMDOBJS= kcmd.o
30 30 YOBJS= gram.o
31 31 SRCS= $(OBJS:.o=.c) $(CMDINETCOMMONDIR)/$(KCMDOBJS:.o=.c)
32 32 YSRCS= $(YOBJS:.o=.y)
33 33
34 34 include ../../../Makefile.cmd
35 35 include ../../Makefile.cmd-inet
36 36
37 37 CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP
38 38 LDLIBS += -lsocket -lnsl
39 39 LDFLAGS += $(MAPFILE.NGB:%=-M%)
40 40
41 41 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
42 42 LDFLAGS += $(KRUNPATH) -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
43 43 LDLIBS += -lnsl -lmech_krb5
44 44 CPPFLAGS += -I. -I$(CMDINETCOMMONDIR) \
45 45 -I$(SRC)/lib/gss_mechs/mech_krb5 \
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
47 47 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
48 48 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5
49 49
50 50 CERRWARN += -_gcc=-Wno-implicit-function-declaration
51 51 CERRWARN += -_gcc=-Wno-unused-variable
52 52 CERRWARN += -_gcc=-Wno-unused-function
53 53 CERRWARN += -_gcc=-Wno-unused-label
54 54 CERRWARN += -_gcc=-Wno-parentheses
55 55 CERRWARN += -_gcc=-Wno-clobbered
56 -CERRWARN += -_gcc=-Wno-uninitialized
56 +CERRWARN += $(CNOWARN_UNINIT)
57 57
58 58 # not linted
59 59 SMATCH=off
60 60
61 61 ROOTSYMLINK= $(ROOT)/usr/ucb/$(PROG)
62 62
63 63 # conditional assignments
64 64 $(ROOTPROG) := FILEMODE= 04555
65 65
66 66 .KEEP_STATE:
67 67
68 68 all: $(PROG)
69 69
70 70 $(PROG): $(OBJS) $(KCMDOBJS) $(YOBJS) $(MAPFILE.NGB)
71 71 $(LINK.c) $(OBJS) $(KCMDOBJS) $(YOBJS) -o $@ $(LDLIBS)
72 72 $(POST_PROCESS)
73 73
74 74 install: all $(ROOTPROG) $(ROOTSYMLINK)
75 75
76 76 $(ROOTSYMLINK):
77 77 $(RM) $@; $(SYMLINK) ../bin/$(PROG) $@
78 78
79 79 clean:
80 80 $(RM) $(OBJS) $(KCMDOBJS) $(YOBJS)
81 81
82 82 lint:
83 83 $(YACC.y) $(YSRCS)
84 84 $(LINT.c) $(SRCS) y.tab.c $(LDLIBS)
85 85 $(RM) y.tab.c
86 86
87 87
88 88 include ../../../Makefile.targ
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX