Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/luxadm/Makefile
+++ new/usr/src/cmd/luxadm/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 2008 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 = luxadm
28 28
29 29 COBJS = adm.o fchba.o lux_util.o fabric_conf.o
30 30 OBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
31 31 OBJS_i386 = x86_adm.o errormsgs.o
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32 OBJS = $(OBJS_$(MACH)) $(COBJS)
33 33
34 34 SRCS = $(OBJS:%.o=%.c)
35 35
36 36 POFILES = $(OBJS:%.o=%.po)
37 37 POFILE = luxadm.po
38 38
39 39 include ../Makefile.cmd
40 40
41 41 CERRWARN += -_gcc=-Wno-parentheses
42 -CERRWARN += -_gcc=-Wno-uninitialized
42 +CERRWARN += $(CNOWARN_UNINIT)
43 43 CERRWARN += -_gcc=-Wno-unused-label
44 44 CERRWARN += -_gcc=-Wno-address
45 45
46 46 # not linted
47 47 SMATCH=off
48 48
49 49 sparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
50 50 i386_LDLIBS =
51 51 LDLIBS += $($(MACH)_LDLIBS)
52 52 LDLIBS += -lnvpair
53 53 LDLIBS += -ldevice
54 54 LDLIBS += -lHBAAPI
55 55
56 56 INCS += -I$(SRC)/lib/sun_fc/common
57 57
58 58 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
59 59
60 60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
61 61 LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
62 62 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
63 63 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
64 64 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
65 65 LINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
66 66 LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
67 67
68 68 ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
69 69
70 70 .KEEP_STATE:
71 71
72 72 all: $(PROG)
73 73
74 74 $(PROG): $(OBJS)
75 75 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
76 76 $(POST_PROCESS)
77 77
78 78 GENCAT_PROG=a5k_g_fc_i18n_cat
79 79 GENMSG_LUX= $(PROG).msg
80 80 LUXFIRMWARED= $(ROOTLIB)/locale/C/LC_MESSAGES
81 81 LUXIBFIRMWARE_sparc= $(LUXFIRMWARED)/ibfirmware
82 82 LUXIBFIRMWARE= $(LUXIBFIRMWARE_$(MACH))
83 83 LUXGENCAT_PROG_sparc= $(LUXFIRMWARED)/$(GENCAT_PROG)
84 84 LUXGENCAT_PROG= $(LUXGENCAT_PROG_$(MACH))
85 85 $(LUXIBFIRMWARE):= FILEMODE= 0644
86 86 $(LUXGENCAT_PROG):= FILEMODE= 0644
87 87
88 88 $(LUXFIRMWARED):
89 89 $(INS.dir)
90 90
91 91 $(LUXIBFIRMWARE): $(LUXFIRMWARED) ibfirmware
92 92 $(INS.file) ibfirmware
93 93
94 94 $(GENMSG_LUX): $(SRCS)
95 95 /usr/bin/genmsg -d -p '$(COMPILE.cpp)' -o $@ $(SRCS)
96 96
97 97 $(GENCAT_PROG): $(GENMSG_LUX)
98 98 /usr/bin/gencat $@ $(GENMSG_LUX)
99 99
100 100 $(LUXGENCAT_PROG): $(LUXFIRMWARED) $(GENCAT_PROG)
101 101 $(INS.file) $(GENCAT_PROG)
102 102
103 103 install: all $(ROOTUSRSBINPROG) $(LUXIBFIRMWARE) $(LUXGENCAT_PROG)
104 104
105 105 $(POFILE): $(POFILES)
106 106 $(RM) $@
107 107 $(CAT) $(POFILES) > $@
108 108
109 109 clean:
110 110 $(RM) $(OBJS) $(PROG) $(GENCAT_PROG) $(GENMSG_LUX)
111 111
112 112 lint: lint_SRCS
113 113
114 114 include ../Makefile.targ
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX