Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/ucodeadm/Makefile
+++ new/usr/src/cmd/ucodeadm/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 2017 RackTop Systems.
26 26 #
27 27
28 28 PROG = ucodeadm
29 29
30 30 PROG_OBJS = ucodeadm.o ucode_errno.o
31 31 COMMON_OBJS = ucode_utils.o
32 32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
33 33 COMMON_SRCDIR = ../../common/ucode
34 34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
35 35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
36 36
37 37 include ../Makefile.cmd
38 38
39 39 POFILE = ucodeadm_all.po
40 40 POFILES = $(PROG_OBJS:%.o=%.po)
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
41 41
42 42 INTEL_UCODE_FILE = intel-ucode.txt
43 43 AMD_UCODE_FILE = amd-ucode.bin
44 44
45 45 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
46 46 ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
47 47 ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
48 48
49 49 CPPFLAGS = -I../../common -I../../uts/common
50 50 CFLAGS += $(CCVERBOSE)
51 -CERRWARN += -_gcc=-Wno-uninitialized
51 +CERRWARN += $(CNOWARN_UNINIT)
52 52 CERRWARN += -_gcc=-Wno-type-limits
53 53 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
54 54 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
55 55 LDLIBS += -lgen
56 56
57 57 DIRMODE = 0755
58 58 FILEMODE = 0555
59 59
60 60 $(ROOTINTELUCODE) := FILEMODE = 0444
61 61 $(ROOTAMDUCODE) := FILEMODE = 0444
62 62
63 63 install := TARGET = install
64 64 clobber := TARGET = clobber
65 65
66 66 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
67 67
68 68 .KEEP_STATE:
69 69
70 70 all: $(PROG)
71 71
72 72 install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
73 73
74 74 _msg: ucodeadm_all.po
75 75
76 76 %.o: $(COMMON_SRCDIR)/%.c
77 77 $(COMPILE.c) -o $@ $<
78 78 $(POST_PROCESS_O)
79 79
80 80 $(PROG): $(OBJS) ucode_errno.c
81 81 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
82 82 $(POST_PROCESS)
83 83
84 84 $(ROOTUCODEPATH):
85 85 $(INS.dir)
86 86
87 87 $(ROOTUCODEPATH)/%: %
88 88 $(INS.file)
89 89
90 90 clean:
91 91 -$(RM) $(CLEANFILES)
92 92
93 93 lint: lint_SRCS
94 94
95 95
96 96 include ../Makefile.targ
97 97
98 98 ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER)
99 99 sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@
100 100
101 101 ucode_errno.po := XGETFLAGS += -a
102 102
103 103 $(POFILE): $(POFILES)
104 104 $(RM) $@
105 105 $(CAT) $(POFILES) > $@
106 106
107 107 FRC:
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX