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