Print this page
cw: give cw(1onbld) a new interface allowing for multiple arbitrary shadows
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/dtrace/test/tst/common/Makefile
+++ new/usr/src/cmd/dtrace/test/tst/common/Makefile
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 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 29 # Copyright (c) 2013, Joyent, Inc. All rights reserved.
30 30 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
31 31 #
32 32
33 33 #
34 34 # WARNING: Do not include Makefile.ctf here. That will cause tests to
35 35 # break.
36 36 #
37 37
38 38 include $(SRC)/Makefile.master
39 39 include ../Makefile.com
40 40
41 41 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
42 42 SNOOPOBJS = nfs4_xdr.o
43 43 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
44 44 CLOBBERFILES += nfs/$(SNOOPOBJS)
45 45
46 46 RPCSVCDIR = $(SRC)/head/rpcsvc
47 47 RPCSVCOBJS = nfs_prot.o
48 48 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
49 49 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
50 50 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
51 51
52 52 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
53 53 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
54 54
55 55 sysevent/tst.post.exe := LDLIBS += -lsysevent
56 56 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
57 57
58 58 ustack/tst.bigstack.exe := COPTFLAG += -xO1
59 59
60 -GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
61 -
62 60 nfs/%.o: $(SNOOPDIR)/%.c
63 61 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
64 62 $(POST_PROCESS_O)
65 63 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
66 64 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
67 65 $(POST_PROCESS) ; $(STRIP_STABS)
68 66 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
69 67 $(RPCGEN) -Cc $< > $@
70 68 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
71 69 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
72 70 $(POST_PROCESS_O)
73 71 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
74 72 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
75 73 $(LDLIBS) -lnsl -lrpcsvc
76 - $(POST_PROCESS) ; $(STRIP_STABS)
77 -
78 -pid/tst.gcc.exe: pid/tst.gcc.c
79 - $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) $(LDLIBS)
80 74 $(POST_PROCESS) ; $(STRIP_STABS)
81 75
82 76 json/tst.usdt.o: json/usdt.h
83 77
84 78 json/usdt.h: json/usdt.d
85 79 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
86 80
87 81 CLOBBERFILES += json/usdt.h
88 82
89 83 json/usdt.o: json/usdt.d json/tst.usdt.o
90 84 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
91 85
92 86 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
93 87 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
94 88 $(POST_PROCESS) ; $(STRIP_STABS)
95 89
96 90 #
97 91 # Tests that use the next three programs rely on the binaries having
98 92 # valid CTF data.
99 93 #
100 94 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
101 95 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
102 96 $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
103 97 $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
104 98 $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
105 99 $(POST_PROCESS) ; $(STRIP_STABS)
106 100
107 101 uctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
108 102 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
109 103 $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
110 104 $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
111 105 $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
112 106 $(POST_PROCESS) ; $(STRIP_STABS)
113 107
114 108 uctf/tst.printtype.exe: uctf/tst.printtype.c
115 109 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
116 110 $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
117 111 $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
118 112 $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
119 113 $(POST_PROCESS) ; $(STRIP_STABS)
120 114
121 115 #
122 116 # This program should never have any ctf data in it.
123 117 #
124 118 uctf/tst.libtype.exe:
125 119 $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
126 120 $(POST_PROCESS) ; $(STRIP_STABS)
127 121
128 122 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
129 123 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
130 124 $(POST_PROCESS) ; $(STRIP_STABS)
131 125
132 126 usdt/args.o: usdt/args.d usdt/tst.args.o
133 127 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
134 128
135 129 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
136 130 $(LINK.c) -o usdt/tst.argmap.exe \
137 131 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
138 132 $(POST_PROCESS) ; $(STRIP_STABS)
139 133
140 134 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
141 135 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
142 136
143 137 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
144 138 $(LINK.c) -o usdt/tst.forker.exe \
145 139 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
146 140 $(POST_PROCESS) ; $(STRIP_STABS)
147 141
148 142 usdt/forker.o: usdt/forker.d usdt/tst.forker.o
149 143 $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
150 144
151 145 usdt/tst.forker.o: usdt/forker.h
152 146
153 147 usdt/forker.h: usdt/forker.d
154 148 $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
155 149
156 150 usdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
157 151 $(LINK.c) -o usdt/tst.lazyprobe.exe \
158 152 usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
159 153 $(POST_PROCESS) ; $(STRIP_STABS)
160 154
161 155 usdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
162 156 $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
163 157 -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
164 158
165 159 usdt/tst.lazyprobe.o: usdt/lazyprobe.h
166 160
167 161 usdt/lazyprobe.h: usdt/lazyprobe.d
168 162 $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
169 163
170 164 SUBDIRS = java_api
171 165 include ../../Makefile.subdirs
↓ open down ↓ |
82 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX