Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/format/Makefile
+++ new/usr/src/cmd/format/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 2015 Nexenta Systems, Inc. All rights reserved.
26 26 # Copyright (c) 2018, Joyent, Inc.
27 27
28 28 PROG= format
29 29
30 30 COBJS= add_definition.o analyze.o checkdev.o ctlr_scsi.o \
31 31 defect.o init_menus.o io.o label.o main.o \
32 32 menu.o menu_analyze.o menu_cache.o menu_command.o menu_defect.o \
33 33 menu_partition.o misc.o modify_partition.o partition.o \
34 34 prompts.o startup.o menu_scsi.o auto_sense.o disk_generic.o \
35 35 menu_developer.o menu_fdisk.o
36 36
37 37 OBJS_sparc= init_csparc.o ctlr_ata.o
38 38
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
39 39 OBJS_i386= init_ci386.o ctlr_ata.o ix_altsctr.o
40 40
41 41 OBJS_= non-existent
42 42
43 43 OBJS= $(OBJS_$(MACH)) $(COBJS)
44 44
45 45 DATA= format.dat
46 46
47 47 include ../Makefile.cmd
48 48
49 -CERRWARN += -_gcc=-Wno-uninitialized
49 +CERRWARN += $(CNOWARN_UNINIT)
50 50 CERRWARN += -_gcc=-Wno-parentheses
51 51 CERRWARN += -_gcc=-Wno-unused-label
52 52 CERRWARN += -_gcc=-Wno-clobbered
53 53
54 54 # not linted
55 55 SMATCH=off
56 56
57 57 SRCS= $(OBJS:.o=.c)
58 58
59 59 ROOTSYMLINK= $(ROOTETCPROG)
60 60 ROOTETCDATA= $(ROOTETC)/$(DATA)
61 61
62 62 $(ROOTETCDATA) := FILEMODE = 0644
63 63
64 64 LDLIBS_i386= -lfdisk
65 65 LDLIBS_sparc=
66 66 LDLIBS += -ladm -lefi -ldiskmgt -lnvpair -ldevid -ldevinfo $(LDLIBS_$(MACH))
67 67
68 68 LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
69 69 CPPFLAGS += -D_EXTVTOC
70 70
71 71 .KEEP_STATE:
72 72
73 73 all: $(PROG) $(DATA)
74 74
75 75 .PARALLEL: $(OBJS)
76 76
77 77 $(PROG): $(OBJS)
78 78 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
79 79 $(POST_PROCESS)
80 80
81 81 #
82 82 # Install format as /usr/sbin/format, with link from /etc/format
83 83 #
84 84 install: $(ROOTUSRSBINPROG) $(ROOTSYMLINK) $(ROOTETCDATA)
85 85
86 86 $(ROOTSYMLINK):
87 87 $(RM) $@; $(SYMLINK) ../usr/sbin/$(PROG) $@
88 88
89 89 clean:
90 90 $(RM) $(OBJS)
91 91
92 92 lint: lint_SRCS
93 93
94 94 sb: $(SRCS)
95 95 $(COMPILE.c) -xsbfast $(SRCS)
96 96
97 97 include ../Makefile.targ
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX