Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libpkg/Makefile.com
+++ new/usr/src/lib/libpkg/Makefile.com
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 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2017 Peter Tribble.
24 24
25 25 #
26 26 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
27 27 # Use is subject to license terms.
28 28 #
29 +# Copyright (c) 2018, Joyent, Inc.
29 30
30 31 LIBRARY= libpkg.a
31 32 VERS= .1
32 33
33 34 # include library definitions
34 35 OBJECTS= \
35 36 canonize.o ckparam.o ckvolseq.o \
36 37 devtype.o dstream.o gpkglist.o \
37 38 gpkgmap.o isdir.o logerr.o \
38 39 mappath.o ncgrpw.o nhash.o \
39 40 path_valid.o pkgexecl.o pkgexecv.o \
40 41 pkgmount.o pkgtrans.o ppkgmap.o \
41 42 progerr.o putcfile.o rrmdir.o \
42 43 runcmd.o srchcfile.o tputcfent.o \
43 44 verify.o \
44 45 vfpops.o fmkdir.o pkgstr.o \
45 46 handlelocalfs.o pkgserv.o
46 47
47 48
48 49 # include library definitions
49 50 include $(SRC)/lib/Makefile.lib
50 51
51 52 SRCDIR= ../common
52 53
53 54 POFILE = libpkg.po
54 55 MSGFILES = $(OBJECTS:%.o=../common/%.i)
55 56 CLEANFILES += $(MSGFILES)
56 57
57 58 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
58 59
59 60
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
60 61 LIBS = $(DYNLIB) $(LINTLIB)
61 62
62 63
63 64 LDLIBS += -lc -lscf -ladm
64 65
65 66 CFLAGS += $(CCVERBOSE)
66 67 CERRWARN += -_gcc=-Wno-parentheses
67 68 CERRWARN += -_gcc=-Wno-uninitialized
68 69 CERRWARN += -_gcc=-Wno-clobbered
69 70 CERRWARN += -_gcc=-Wno-switch
71 +
72 +# not linted
73 +SMATCH=off
74 +
70 75 CPPFLAGS += -I$(SRCDIR) -D_FILE_OFFSET_BITS=64
71 76
72 77 .KEEP_STATE:
73 78
74 79 all: $(LIBS)
75 80
76 81 $(POFILE): $(MSGFILES)
77 82 $(BUILDPO.msgfiles)
78 83
79 84 _msg: $(MSGDOMAINPOFILE)
80 85
81 86 lint: lintcheck
82 87
83 88 # include library targets
84 89 include $(SRC)/lib/Makefile.targ
85 90 include $(SRC)/Makefile.msg.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX