Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libproc/Makefile.com
+++ new/usr/src/lib/libproc/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
24 24 # Copyright (c) 2013 by Delphix. All rights reserved.
25 25 #
26 +# Copyright (c) 2018, Joyent, Inc.
26 27
27 28 LIBRARY = libproc.a
28 29 VERS = .1
29 30
30 31 CMNOBJS = \
31 32 P32ton.o \
32 33 Pcontrol.o \
33 34 Pcore.o \
34 35 Pexecname.o \
35 36 Pfdinfo.o \
36 37 Pgcore.o \
37 38 Pidle.o \
38 39 Pisprocdir.o \
39 40 Plwpregs.o \
40 41 Pservice.o \
41 42 Psymtab.o \
42 43 Psymtab_machelf32.o \
43 44 $(CMNOBJS64) \
44 45 Pscantext.o \
45 46 Pstack.o \
46 47 Psyscall.o \
47 48 Putil.o \
48 49 Pzone.o \
49 50 pr_door.o \
50 51 pr_exit.o \
51 52 pr_fcntl.o \
52 53 pr_getitimer.o \
53 54 pr_getrctl.o \
54 55 pr_getrlimit.o \
55 56 pr_getsockname.o \
56 57 pr_ioctl.o \
57 58 pr_lseek.o \
58 59 pr_memcntl.o \
59 60 pr_meminfo.o \
60 61 pr_mmap.o \
61 62 pr_open.o \
62 63 pr_pbind.o \
63 64 pr_rename.o \
64 65 pr_sigaction.o \
65 66 pr_stat.o \
66 67 pr_statvfs.o \
67 68 pr_tasksys.o \
68 69 pr_waitid.o \
69 70 proc_get_info.o \
70 71 proc_names.o \
71 72 proc_arg.o \
72 73 proc_set.o \
73 74 proc_stdio.o
74 75
75 76 ISAOBJS = \
76 77 Pisadep.o
77 78
78 79 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
79 80
80 81 # include library definitions
81 82 include ../../Makefile.lib
82 83 include ../../Makefile.rootfs
83 84
84 85 SRCS = $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
85 86
86 87 LIBS = $(DYNLIB) $(LINTLIB)
87 88 LDLIBS += -lrtld_db -lelf -lctf -lc
88 89 CSTD = $(CSTD_GNU99)
89 90 CPPFLAGS += $($(MACH64)_CPPFLAGS)
90 91
91 92 SRCDIR = ../common
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
92 93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
93 94
94 95 CFLAGS += $(CCVERBOSE)
95 96 CPPFLAGS += -I$(SRCDIR)
96 97
97 98 CERRWARN += -_gcc=-Wno-uninitialized
98 99 CERRWARN += -_gcc=-Wno-parentheses
99 100 CERRWARN += -_gcc=-Wno-type-limits
100 101 CERRWARN += -_gcc=-Wno-unused-label
101 102
103 +# not linted
104 +SMATCH=off
105 +
102 106 # All interfaces are interposable, therefore don't allow direct binding to
103 107 # libproc. Disable libproc from directly binding to itself, but allow libperl
104 108 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure
105 109 # lazy loading is established (which is enabled automatically with -Bdirect).
106 110 BDIRECT =
107 111 DYNFLAGS += $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
108 112
109 113 .KEEP_STATE:
110 114
111 115 all: $(LIBS)
112 116
113 117 lint: lintcheck
114 118
115 119 # include library targets
116 120 include ../../Makefile.targ
117 121
118 122 objs/%.o pics/%.o: %.c
119 123 $(COMPILE.c) -o $@ $<
120 124 $(POST_PROCESS_O)
121 125
122 126 objs/%.o pics/%.o: $(SRC)/common/saveargs/%.c
123 127 $(COMPILE.c) -o $@ $<
124 128 $(POST_PROCESS_O)
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX