Print this page
*** NO COMMENTS ***
| 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 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # ident "%Z%%M% %I% %E% SMI"
26 26 #
27 27
28 28 LIBRARY = libdtrace.a
29 29 VERS = .1
30 30
31 31 LIBSRCS = \
32 32 dt_aggregate.c \
33 33 dt_as.c \
34 34 dt_buf.c \
35 35 dt_cc.c \
36 36 dt_cg.c \
37 37 dt_consume.c \
38 38 dt_decl.c \
39 39 dt_dis.c \
40 40 dt_dof.c \
41 41 dt_error.c \
42 42 dt_errtags.c \
43 43 dt_handle.c \
44 44 dt_ident.c \
45 45 dt_inttab.c \
46 46 dt_link.c \
47 47 dt_list.c \
48 48 dt_open.c \
49 49 dt_options.c \
50 50 dt_program.c \
51 51 dt_map.c \
52 52 dt_module.c \
53 53 dt_names.c \
54 54 dt_parser.c \
55 55 dt_pcb.c \
56 56 dt_pid.c \
57 57 dt_pragma.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 DRTISRC = drti.c
74 74 DRTIOBJ = $(DRTISRC:%.c=%.o)
75 75
76 76 DLIBSRCS += \
|
↓ open down ↓ |
76 lines elided |
↑ open up ↑ |
77 77 errno.d \
78 78 io.d \
79 79 ip.d \
80 80 net.d \
81 81 nfs.d \
82 82 procfs.d \
83 83 regs.d \
84 84 sched.d \
85 85 signal.d \
86 86 sysevent.d \
87 + tcp.d \
87 88 unistd.d
88 89
89 90 include ../../Makefile.lib
90 91
91 92 SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c)
92 93 LIBS = $(DYNLIB) $(LINTLIB)
93 94
94 95 SRCDIR = ../common
95 96
96 97 CLEANFILES += dt_lex.c dt_grammar.c dt_grammar.h y.output
97 98 CLEANFILES += ../common/procfs.sed ../common/procfs.d
98 99 CLEANFILES += ../common/io.sed ../common/io.d
99 100 CLEANFILES += ../common/ip.sed ../common/ip.d
100 101 CLEANFILES += ../common/net.sed ../common/net.d
102 +CLEANFILES += ../common/tcp.sed ../common/tcp.d
101 103 CLEANFILES += ../common/errno.d ../common/signal.d
102 104 CLEANFILES += ../common/dt_errtags.c ../common/dt_names.c
103 105 CLEANFILES += ../common/sysevent.sed ../common/sysevent.d
104 106
105 107 CLOBBERFILES += drti.o
106 108
107 109 CPPFLAGS += -I../common -I.
108 110 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
109 111 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
110 112 YYCFLAGS =
111 113 LDLIBS += -lgen -lproc -lrtld_db -lctf -lelf -lc
112 114 DRTILDLIBS = $(LDLIBS.lib) -lc
113 115
114 116 yydebug := YYCFLAGS += -DYYDEBUG
115 117
116 118 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
117 119
118 120 LFLAGS = -t -v
119 121 YFLAGS = -d -v
120 122
121 123 ROOTDLIBDIR = $(ROOT)/usr/lib/dtrace
122 124 ROOTDLIBDIR64 = $(ROOT)/usr/lib/dtrace/64
123 125
124 126 ROOTDLIBS = $(DLIBSRCS:%=$(ROOTDLIBDIR)/%)
125 127 ROOTDOBJS = $(ROOTDLIBDIR)/$(DRTIOBJ)
126 128 ROOTDOBJS64 = $(ROOTDLIBDIR64)/$(DRTIOBJ)
127 129
128 130 .KEEP_STATE:
129 131
130 132 all: $(LIBS) $(DRTIOBJ)
131 133
132 134 lint: lintdrti lintcheck
133 135
134 136 lintdrti: ../common/$(DRTISRC)
135 137 $(LINT.c) ../common/$(DRTISRC) $(DRTILDLIBS)
136 138
137 139 dt_lex.c: $(SRCDIR)/dt_lex.l dt_grammar.h
138 140 $(LEX) $(LFLAGS) $(SRCDIR)/dt_lex.l > $@
139 141
140 142 dt_grammar.c dt_grammar.h: $(SRCDIR)/dt_grammar.y
141 143 $(YACC) $(YFLAGS) $(SRCDIR)/dt_grammar.y
142 144 @mv y.tab.h dt_grammar.h
143 145 @mv y.tab.c dt_grammar.c
144 146
145 147 pics/dt_lex.o pics/dt_grammar.o := CFLAGS += $(YYCFLAGS)
146 148 pics/dt_lex.o pics/dt_grammar.o := CFLAGS64 += $(YYCFLAGS)
147 149
148 150 pics/dt_lex.o pics/dt_grammar.o := CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
149 151 pics/dt_lex.o pics/dt_grammar.o := CCVERBOSE =
150 152
151 153 ../common/dt_errtags.c: ../common/mkerrtags.sh ../common/dt_errtags.h
152 154 sh ../common/mkerrtags.sh < ../common/dt_errtags.h > $@
153 155
154 156 ../common/dt_names.c: ../common/mknames.sh $(SRC)/uts/common/sys/dtrace.h
155 157 sh ../common/mknames.sh < $(SRC)/uts/common/sys/dtrace.h > $@
156 158
157 159 ../common/errno.d: ../common/mkerrno.sh $(SRC)/uts/common/sys/errno.h
158 160 sh ../common/mkerrno.sh < $(SRC)/uts/common/sys/errno.h > $@
159 161
160 162 ../common/signal.d: ../common/mksignal.sh $(SRC)/uts/common/sys/iso/signal_iso.h
161 163 sh ../common/mksignal.sh < $(SRC)/uts/common/sys/iso/signal_iso.h > $@
162 164
163 165 ../common/%.sed: ../common/%.sed.in
164 166 $(COMPILE.cpp) -D_KERNEL $< | tr -d ' ' | tr '"' '@' | \
165 167 sed 's/\&/\\\&/g' | grep '^s/' > $@
166 168
167 169 ../common/procfs.d: ../common/procfs.sed ../common/procfs.d.in
168 170 sed -f ../common/procfs.sed < ../common/procfs.d.in > $@
|
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
169 171
170 172 ../common/io.d: ../common/io.sed ../common/io.d.in
171 173 sed -f ../common/io.sed < ../common/io.d.in > $@
172 174
173 175 ../common/ip.d: ../common/ip.sed ../common/ip.d.in
174 176 sed -f ../common/ip.sed < ../common/ip.d.in > $@
175 177
176 178 ../common/net.d: ../common/net.sed ../common/net.d.in
177 179 sed -f ../common/net.sed < ../common/net.d.in > $@
178 180
181 +../common/tcp.d: ../common/tcp.sed ../common/tcp.d.in
182 + sed -f ../common/tcp.sed < ../common/tcp.d.in > $@
183 +
179 184 ../common/sysevent.d: ../common/sysevent.sed ../common/sysevent.d.in
180 185 sed -f ../common/sysevent.sed < ../common/sysevent.d.in > $@
181 186
182 187 pics/%.o: ../$(MACH)/%.c
183 188 $(COMPILE.c) -o $@ $<
184 189 $(POST_PROCESS_O)
185 190
186 191 pics/%.o: ../$(MACH)/%.s
187 192 $(COMPILE.s) -o $@ $<
188 193 $(POST_PROCESS_O)
189 194
190 195 %.o: ../common/%.c
191 196 $(COMPILE.c) -o $@ $<
192 197 $(POST_PROCESS_O)
193 198
194 199 $(ROOTDLIBDIR):
195 200 $(INS.dir)
196 201
197 202 $(ROOTDLIBDIR64): $(ROOTDLIBDIR)
198 203 $(INS.dir)
199 204
200 205 $(ROOTDLIBDIR)/%.d: ../common/%.d
201 206 $(INS.file)
202 207
203 208 $(ROOTDLIBDIR)/%.d: ../$(MACH)/%.d
204 209 $(INS.file)
205 210
206 211 $(ROOTDLIBDIR)/%.d: %.d
207 212 $(INS.file)
208 213
209 214 $(ROOTDLIBDIR)/%.o: %.o
210 215 $(INS.file)
211 216
212 217 $(ROOTDLIBDIR64)/%.o: %.o
213 218 $(INS.file)
214 219
215 220 $(ROOTDLIBS): $(ROOTDLIBDIR)
216 221
217 222 $(ROOTDOBJS): $(ROOTDLIBDIR)
218 223
219 224 $(ROOTDOBJS64): $(ROOTDLIBDIR64)
220 225
221 226 include ../../Makefile.targ
|
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX