Print this page
3903 DTrace SCTP Provider
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libdtrace/Makefile.com
+++ new/usr/src/lib/libdtrace/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) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2012 by Delphix. All rights reserved.
24 24 #
25 25
26 26 LIBRARY = libdtrace.a
27 27 VERS = .1
28 28
29 29 LIBSRCS = \
30 30 dt_aggregate.c \
31 31 dt_as.c \
32 32 dt_buf.c \
33 33 dt_cc.c \
34 34 dt_cg.c \
35 35 dt_consume.c \
36 36 dt_decl.c \
37 37 dt_dis.c \
38 38 dt_dof.c \
39 39 dt_error.c \
40 40 dt_errtags.c \
41 41 dt_handle.c \
42 42 dt_ident.c \
43 43 dt_inttab.c \
44 44 dt_link.c \
45 45 dt_list.c \
46 46 dt_open.c \
47 47 dt_options.c \
48 48 dt_program.c \
49 49 dt_map.c \
50 50 dt_module.c \
51 51 dt_names.c \
52 52 dt_parser.c \
53 53 dt_pcb.c \
54 54 dt_pid.c \
55 55 dt_pq.c \
56 56 dt_pragma.c \
57 57 dt_print.c \
58 58 dt_printf.c \
59 59 dt_proc.c \
60 60 dt_provider.c \
61 61 dt_regset.c \
62 62 dt_string.c \
63 63 dt_strtab.c \
64 64 dt_subr.c \
65 65 dt_work.c \
66 66 dt_xlator.c
67 67
68 68 LIBISASRCS = \
69 69 dt_isadep.c
70 70
71 71 OBJECTS = dt_lex.o dt_grammar.o $(MACHOBJS) $(LIBSRCS:%.c=%.o) $(LIBISASRCS:%.c=%.o)
72 72
73 73 DRTISRCS = dlink_init.c dlink_common.c
74 74 DRTIOBJS = $(DRTISRCS:%.c=pics/%.o)
75 75 DRTIOBJ = drti.o
76 76
77 77 LIBDAUDITSRCS = dlink_audit.c dlink_common.c
78 78 LIBDAUDITOBJS = $(LIBDAUDITSRCS:%.c=pics/%.o)
79 79 LIBDAUDIT = libdtrace_forceload.so
80 80
81 81 DLINKSRCS = dlink_common.c dlink_init.c dlink_audit.c
82 82
83 83 DLIBSRCS += \
84 84 errno.d \
85 85 fc.d \
86 86 io.d \
87 87 ip.d \
88 88 iscsit.d \
89 89 net.d \
90 90 nfs.d \
↓ open down ↓ |
90 lines elided |
↑ open up ↑ |
91 91 nfssrv.d \
92 92 procfs.d \
93 93 regs.d \
94 94 sched.d \
95 95 signal.d \
96 96 scsi.d \
97 97 srp.d \
98 98 sysevent.d \
99 99 tcp.d \
100 100 udp.d \
101 + sctp.d \
101 102 unistd.d
102 103
103 104 include ../../Makefile.lib
104 105
105 106 SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c)
106 107 LIBS = $(DYNLIB) $(LINTLIB)
107 108
108 109 SRCDIR = ../common
109 110
110 111 CLEANFILES += dt_lex.c dt_grammar.c dt_grammar.h y.output
111 112 CLEANFILES += ../common/procfs.sed ../common/procfs.d
112 113 CLEANFILES += ../common/io.sed ../common/io.d
113 114 CLEANFILES += ../common/ip.sed ../common/ip.d
114 115 CLEANFILES += ../common/net.sed ../common/net.d
115 116 CLEANFILES += ../common/errno.d ../common/signal.d
116 117 CLEANFILES += ../common/dt_errtags.c ../common/dt_names.c
117 118 CLEANFILES += ../common/sysevent.sed ../common/sysevent.d
118 119 CLEANFILES += ../common/tcp.sed ../common/tcp.d
119 120 CLEANFILES += ../common/udp.sed ../common/udp.d
121 +CLEANFILES += ../common/sctp.sed ../common/sctp.d
120 122 CLEANFILES += $(LIBDAUDITOBJS) $(DRTIOBJS)
121 123
122 124 CLOBBERFILES += $(LIBDAUDIT) drti.o
123 125
124 126 CPPFLAGS += -I../common -I.
125 127 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
126 128 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
127 129
128 130 CERRWARN += -_gcc=-Wno-unused-label
129 131 CERRWARN += -_gcc=-Wno-unused-variable
130 132 CERRWARN += -_gcc=-Wno-parentheses
131 133 CERRWARN += -_gcc=-Wno-uninitialized
132 134 CERRWARN += -_gcc=-Wno-switch
133 135
134 136 YYCFLAGS =
135 137 LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
136 138 DRTILDLIBS = $(LDLIBS.lib) -lc
137 139
138 140 yydebug := YYCFLAGS += -DYYDEBUG
139 141
140 142 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
141 143
142 144 LFLAGS = -t -v
143 145 YFLAGS = -d -v
144 146
145 147 ROOTDLIBDIR = $(ROOT)/usr/lib/dtrace
146 148 ROOTDLIBDIR64 = $(ROOT)/usr/lib/dtrace/64
147 149
148 150 ROOTDLIBS = $(DLIBSRCS:%=$(ROOTDLIBDIR)/%)
149 151 ROOTDOBJS = $(ROOTDLIBDIR)/$(DRTIOBJ) $(ROOTDLIBDIR)/$(LIBDAUDIT)
150 152 ROOTDOBJS64 = $(ROOTDLIBDIR64)/$(DRTIOBJ) $(ROOTDLIBDIR64)/$(LIBDAUDIT)
151 153
152 154 $(ROOTDLIBDIR)/%.d := FILEMODE=444
153 155 $(ROOTDLIBDIR)/%.o := FILEMODE=444
154 156 $(ROOTDLIBDIR64)/%.o := FILEMODE=444
155 157 $(ROOTDLIBDIR)/%.so := FILEMODE=555
156 158 $(ROOTDLIBDIR64)/%.so := FILEMODE=555
157 159
158 160 .KEEP_STATE:
159 161
160 162 all: $(LIBS) $(DRTIOBJ) $(LIBDAUDIT)
161 163
162 164 lint: lintdlink lintcheck
163 165
164 166 lintdlink: $(DLINKSRCS:%.c=../common/%.c)
165 167 $(LINT.c) $(DLINKSRCS:%.c=../common/%.c) $(DRTILDLIBS)
166 168
167 169 dt_lex.c: $(SRCDIR)/dt_lex.l dt_grammar.h
168 170 $(LEX) $(LFLAGS) $(SRCDIR)/dt_lex.l > $@
169 171
170 172 dt_grammar.c dt_grammar.h: $(SRCDIR)/dt_grammar.y
171 173 $(YACC) $(YFLAGS) $(SRCDIR)/dt_grammar.y
172 174 @mv y.tab.h dt_grammar.h
173 175 @mv y.tab.c dt_grammar.c
174 176
175 177 pics/dt_lex.o pics/dt_grammar.o := CFLAGS += $(YYCFLAGS)
176 178 pics/dt_lex.o pics/dt_grammar.o := CFLAGS64 += $(YYCFLAGS)
177 179
178 180 pics/dt_lex.o pics/dt_grammar.o := CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
179 181 pics/dt_lex.o pics/dt_grammar.o := CCVERBOSE =
180 182
181 183 ../common/dt_errtags.c: ../common/mkerrtags.sh ../common/dt_errtags.h
182 184 sh ../common/mkerrtags.sh < ../common/dt_errtags.h > $@
183 185
184 186 ../common/dt_names.c: ../common/mknames.sh $(SRC)/uts/common/sys/dtrace.h
185 187 sh ../common/mknames.sh < $(SRC)/uts/common/sys/dtrace.h > $@
186 188
187 189 ../common/errno.d: ../common/mkerrno.sh $(SRC)/uts/common/sys/errno.h
188 190 sh ../common/mkerrno.sh < $(SRC)/uts/common/sys/errno.h > $@
189 191
190 192 ../common/signal.d: ../common/mksignal.sh $(SRC)/uts/common/sys/iso/signal_iso.h
191 193 sh ../common/mksignal.sh < $(SRC)/uts/common/sys/iso/signal_iso.h > $@
192 194
193 195 ../common/%.sed: ../common/%.sed.in
194 196 $(COMPILE.cpp) -D_KERNEL $< | tr -d ' ' | tr '"' '@' | \
195 197 sed 's/\&/\\\&/g' | grep '^s/' > $@
196 198
197 199 ../common/procfs.d: ../common/procfs.sed ../common/procfs.d.in
198 200 sed -f ../common/procfs.sed < ../common/procfs.d.in > $@
199 201
200 202 ../common/io.d: ../common/io.sed ../common/io.d.in
201 203 sed -f ../common/io.sed < ../common/io.d.in > $@
↓ open down ↓ |
72 lines elided |
↑ open up ↑ |
202 204
203 205 ../common/ip.d: ../common/ip.sed ../common/ip.d.in
204 206 sed -f ../common/ip.sed < ../common/ip.d.in > $@
205 207
206 208 ../common/net.d: ../common/net.sed ../common/net.d.in
207 209 sed -f ../common/net.sed < ../common/net.d.in > $@
208 210
209 211 ../common/sysevent.d: ../common/sysevent.sed ../common/sysevent.d.in
210 212 sed -f ../common/sysevent.sed < ../common/sysevent.d.in > $@
211 213
212 -../common/tcp.d: ..//common/tcp.sed ../common/tcp.d.in
214 +../common/tcp.d: ../common/tcp.sed ../common/tcp.d.in
213 215 sed -f ../common/tcp.sed < ../common/tcp.d.in > $@
214 216
215 217 ../common/udp.d: ../common/udp.sed ../common/udp.d.in
216 218 sed -f ../common/udp.sed < ../common/udp.d.in > $@
217 219
220 +../common/sctp.d: ../common/sctp.sed ../common/sctp.d.in
221 + sed -f ../common/sctp.sed < ../common/sctp.d.in > $@
222 +
218 223 pics/%.o: ../$(MACH)/%.c
219 224 $(COMPILE.c) -o $@ $<
220 225 $(POST_PROCESS_O)
221 226
222 227 pics/%.o: ../$(MACH)/%.s
223 228 $(COMPILE.s) -o $@ $<
224 229 $(POST_PROCESS_O)
225 230
226 231 $(DRTIOBJ): $(DRTIOBJS)
227 232 $(LD) -o $@ -r -Blocal -Breduce $(DRTIOBJS)
228 233 $(POST_PROCESS_O)
229 234
230 235 $(LIBDAUDIT): $(LIBDAUDITOBJS)
231 236 $(LINK.c) -o $@ $(GSHARED) -h$(LIBDAUDIT) $(ZTEXT) $(ZDEFS) $(BDIRECT) \
232 237 $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBDAUDITOBJS) \
233 238 -lmapmalloc -lc -lproc
234 239 $(POST_PROCESS_SO)
235 240
236 241 $(ROOTDLIBDIR):
237 242 $(INS.dir)
238 243
239 244 $(ROOTDLIBDIR64): $(ROOTDLIBDIR)
240 245 $(INS.dir)
241 246
242 247 $(ROOTDLIBDIR)/%.d: ../common/%.d
243 248 $(INS.file)
244 249
245 250 $(ROOTDLIBDIR)/%.d: ../$(MACH)/%.d
246 251 $(INS.file)
247 252
248 253 $(ROOTDLIBDIR)/%.d: %.d
249 254 $(INS.file)
250 255
251 256 $(ROOTDLIBDIR)/%.o: %.o
252 257 $(INS.file)
253 258
254 259 $(ROOTDLIBDIR64)/%.o: %.o
255 260 $(INS.file)
256 261
257 262 $(ROOTDLIBDIR)/%.so: %.so
258 263 $(INS.file)
259 264
260 265 $(ROOTDLIBDIR64)/%.so: %.so
261 266 $(INS.file)
262 267
263 268 $(ROOTDLIBS): $(ROOTDLIBDIR)
264 269
265 270 $(ROOTDOBJS): $(ROOTDLIBDIR)
266 271
267 272 $(ROOTDOBJS64): $(ROOTDLIBDIR64)
268 273
269 274 include ../../Makefile.targ
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX