Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/svr4pkg/libinst/Makefile
+++ new/usr/src/cmd/svr4pkg/libinst/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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 2017 Peter Tribble.
24 24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 PROG= libinst.a
29 30
30 31 OBJS= copyf.o dockdeps.o echo.o eptstat.o \
31 32 finalck.o findscripts.o fixpath.o flex_dev.o \
32 33 isreloc.o lockinst.o mntinfo.o nblk.o \
33 34 ocfile.o pathdup.o pkgdbmerg.o procmap.o \
34 35 pkgobjmap.o ptext.o putparam.o \
35 36 qreason.o qstrdup.o setadmin.o setlist.o \
36 37 srcpath.o scriptvfy.o doulimit.o \
37 38 dryrun.o listmgr.o is_local_host.o cvtpath.o \
38 39 depchk.o pkgops.o sml.o log.o \
39 40 setup_temporary_directory.o open_package_datastream.o \
40 41 unpack_package_from_stream.o
41 42 SRCS = $(OBJS:.o=.c)
42 43
43 44 include $(SRC)/cmd/Makefile.cmd
44 45
45 46 #
46 47 # For messaging catalog
47 48 POFILE = libinst.po
48 49 MSGFILES=$(OBJS:%.o=%.i)
49 50
50 51 CPPFLAGS += -I$(SRC)/cmd/svr4pkg/hdrs \
51 52 -I$(SRC)/lib/libpkg/common \
52 53 -I$(SRC)/lib/libinstzones/common \
53 54 -D_FILE_OFFSET_BITS=64
54 55
55 56 # For VERBOSE mode
56 57 #CPPFLAGS += -DVERBOSE
57 58
58 59 # For stop-in-your-tracks debugging
59 60 #CPPFLAGS += -DBUG_DEBUG
60 61
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
61 62 # Lint flags
62 63 #
63 64 LINTFLAGS += -un
64 65
65 66 CERRWARN += -_gcc=-Wno-parentheses
66 67 CERRWARN += -_gcc=-Wno-implicit-function-declaration
67 68 CERRWARN += -_gcc=-Wno-uninitialized
68 69 CERRWARN += -_gcc=-Wno-clobbered
69 70 CERRWARN += -_gcc=-Wno-unused-variable
70 71
72 +# too many issues
73 +SMATCH=off
74 +
71 75 .KEEP_STATE:
72 76
73 77 all: $(PROG)
74 78
75 79 $(PROG): $(OBJS)
76 80 $(RM) $@
77 81 $(AR) $(ARFLAGS) $@ $(OBJS)
78 82 $(POST_PROCESS_A)
79 83
80 84 install: all
81 85 @echo "$(PROG) is a static library and will not be installed."
82 86
83 87 $(POFILE): $(MSGFILES)
84 88 $(BUILDPO.msgfiles)
85 89
86 90 _msg: $(MSGDOMAINPOFILE)
87 91
88 92 clean:
89 93 $(RM) $(OBJS) $(MSGFILES)
90 94
91 95 clobber: clean
92 96 $(RM) $(PROG) $(POFILE)
93 97
94 98 include $(SRC)/Makefile.msg.targ
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX