Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libtnfprobe/Makefile.com
+++ new/usr/src/lib/libtnfprobe/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 #
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 #
24 24 # Copyright (c) 2019, Joyent, Inc.
25 25
26 26 LIBRARY= libtnfprobe.a
27 27 VERS= .1
28 28 OBJECTS.c= tnf_buf.o \
29 29 trace_init.o \
30 30 trace_funcs.o \
31 31 debug_funcs.o \
32 32 probe_mem.o \
33 33 tnf_args.o \
34 34 tnf_trace.o \
35 35 probe_cntl.o
36 36
37 37 UFSDIR= $(SRC)/uts/common/tnf
38 38 UFSOBJS= tnf_writer.o tnf_probe.o
39 39
40 40 OBJECTS.s= $(MACH)_locks.o
41 41
42 42 OBJECTS= $(OBJECTS.c) $(UFSOBJS) $(OBJECTS.s)
43 43
44 44 include ../../Makefile.lib
45 45
46 46 # We omit $(OBJECTS.s:%.o=%.s) in the next line, because lint no like
47 47 SRCS= $(OBJECTS.c:%.o=../%.c) $(UFSOBJS:%.o=$(UFSDIR)/%.c)
48 48
49 49 LIBS= $(DYNLIB)
50 50
51 51 DYNFLAGS += $(ZINTERPOSE)
52 52
53 53 HDRS= com.h writer.h probe.h
54 54 ROOTHDRDIR= $(ROOT)/usr/include/tnf
55 55 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
56 56 CHECKHDRS= $(HDRS:%.h=%.check)
57 57 $(ROOTHDRS) := FILEMODE = 0644
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
58 58 CHECKHDRS = $(HDRS:%.h=%.check)
59 59
60 60 # Include .. first to pick up tnf_trace.h in current dir, Include UFSDIR to
61 61 # pick up tnf_types.h
62 62 CPPFLAGS += -I.. -I$(UFSDIR) -D_REENTRANT -D_TNF_LIBRARY
63 63
64 64 LINTFLAGS += -y
65 65
66 66 CERRWARN += -_gcc=-Wno-unused-variable
67 67 CERRWARN += -_gcc=-Wno-parentheses
68 -CERRWARN += -_gcc=-Wno-uninitialized
68 +CERRWARN += $(CNOWARN_UNINIT)
69 69
70 70 # not linted
71 71 SMATCH=off
72 72
73 73 $(ROOTHDRS) := FILEMODE = 644
74 74
75 75 LDLIBS += -lc
76 76
77 77 .KEEP_STATE:
78 78
79 79 all: $(LIBS)
80 80
81 81 install_h: $(ROOTHDRDIR) $(ROOTHDRS)
82 82
83 83 lint:
84 84 $(LINT.c) $(SRCS)
85 85
86 86 check: $(CHECKHDRS)
87 87
88 88 $(ROOTLIBDIR) $(ROOTHDRDIR):
89 89 $(INS.dir)
90 90
91 91 $(ROOTHDRDIR)/% : %
92 92 $(INS.file)
93 93
94 94 #ASFLAGS= $(AS_PICFLAGS) -P -D_SYS_SYS_S -D_LOCORE -D_ASM -DPIC -DLOCORE $(CPPFLAGS)
95 95 ASFLAGS= -P -D_SYS_SYS_S -D_LOCORE -D_ASM -DPIC -DLOCORE $(CPPFLAGS)
96 96 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
97 97
98 98 objs/%.o pics/%.o: ../%.s
99 99 $(COMPILE.s) -o $@ $<
100 100 $(POST_PROCESS_S_O)
101 101
102 102 pics/%.o objs/%.o: ../%.c
103 103 $(COMPILE.c) -o $@ $<
104 104 $(POST_PROCESS_O)
105 105
106 106 pics/%.o objs/%.o: $(UFSDIR)/%.c
107 107 $(COMPILE.c) -o $@ $<
108 108 $(POST_PROCESS_O)
109 109
110 110 include ../../Makefile.targ
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX