Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/svc/startd/Makefile
+++ new/usr/src/cmd/svc/startd/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 (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 Milan Jurik. All rights reserved.
24 24 # Copyright 2016 Toomas Soome <tsoome@me.com>
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26 #
27 27
28 28 PROG = svc.startd
29 29 OBJS = \
30 30 contract.o \
31 31 deathrow.o \
32 32 dict.o \
33 33 env.o \
34 34 expand.o \
35 35 file.o \
36 36 fork.o \
37 37 graph.o \
38 38 libscf.o \
39 39 log.o \
40 40 method.o \
41 41 misc.o \
42 42 protocol.o \
43 43 restarter.o \
44 44 specials.o \
45 45 startd.o \
46 46 transition.o \
47 47 wait.o \
48 48 utmpx.o
49 49
50 50 ALLOBJS = $(OBJS) \
51 51 proc.o \
52 52 manifest_hash.o
53 53
54 54 SRCS = $(OBJS:%.o=%.c) \
55 55 proc.c \
56 56 ../common/manifest_hash.c
57 57
58 58 POFILES = $(OBJS:%.o=%.po) \
59 59 proc.po \
60 60 ../common/manifest_hash.po
61 61
62 62 include ../../Makefile.cmd
63 63 include ../../Makefile.ctf
↓ open down ↓ |
63 lines elided |
↑ open up ↑ |
64 64
65 65 ROOTCMDDIR= $(ROOT)/lib/svc/bin
66 66
67 67 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
68 68 CFLAGS += $(CCVERBOSE)
69 69 CPPFLAGS += -I. -I../common
70 70
71 71 CERRWARN += -_gcc=-Wno-parentheses
72 72 CERRWARN += -_gcc=-Wno-unused-label
73 73 CERRWARN += -_gcc=-Wno-switch
74 -CERRWARN += -_gcc=-Wno-uninitialized
74 +CERRWARN += $(CNOWARN_UNINIT)
75 75
76 76 # these look like real bugs here, but ...
77 77 SMOFF += impossible_mask,signed_integer_overflow_check
78 78
79 79 $(OBJS) := CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_REENTRANT
80 80
81 81 proc.o := CPPFLAGS += -D_REENTRANT
82 82
83 83 %.o: ../common/%.c
84 84 $(COMPILE.c) $(OUTPUT_OPTION) $<
85 85 $(POST_PROCESS_O)
86 86
87 87 %.ln: ../common/%.c
88 88 $(LINT.c) $(OUTPUT_OPTION) -c $<
89 89
90 90 LDLIBS += \
91 91 -lcontract \
92 92 -lkstat \
93 93 -lmd5 \
94 94 -lnvpair \
95 95 -lrestart \
96 96 -lscf \
97 97 -lsysevent \
98 98 -lumem \
99 99 -luutil
100 100
101 101 LDLIBS_i386 += -lbe
102 102 LDLIBS += $(LDLIBS_$(MACH)) -L $(ROOT)/lib/fm -lfmevent
103 103 LDFLAGS += -R /lib/fm
104 104
105 105 FILEMODE = 0555
106 106
107 107 # lint doesn't like the unused _umem_*_init()
108 108 # And lint thinks uadmin() is undefined.
109 109 lint_SRCS := LINTFLAGS += -U_FILE_OFFSET_BITS -xerroff=E_NAME_DEF_NOT_USED2 -u
110 110 lint_SRCS := CPPFLAGS += \
111 111 -I. -I../common -D_REENTRANT -D_FILE_OFFSET_BITS=64
112 112
113 113 .KEEP_STATE:
114 114
115 115 .PARALLEL: $(ALLOBJS)
116 116
117 117 all: $(PROG)
118 118
119 119 $(PROG): $(ALLOBJS)
120 120 $(LINK.c) -o $@ $(ALLOBJS) $(LDLIBS) $(LDFLAGS) $(CTFMERGE_HOOK)
121 121 $(POST_PROCESS)
122 122
123 123 $(POFILE): $(POFILES)
124 124 cat $(POFILES) > $(POFILE)
125 125
126 126 install: all $(ROOTCMD)
127 127
128 128 clean:
129 129 $(RM) $(ALLOBJS)
130 130
131 131 lint: lint_SRCS
132 132
133 133 include ../../Makefile.targ
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX