Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
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 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
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 -# Copyright (c) 2013, Joyent, Inc. All rights reserved.
30 29 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
30 +# Copyright 2018 Joyent, Inc.
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 ↓ |
9 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 +CSTD = $(CSTD_GNU99)
61 +
60 62 nfs/%.o: $(SNOOPDIR)/%.c
61 63 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
62 64 $(POST_PROCESS_O)
63 65 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
64 66 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
65 67 $(POST_PROCESS) ; $(STRIP_STABS)
66 68 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
67 69 $(RPCGEN) -Cc $< > $@
68 70 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
69 71 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
70 72 $(POST_PROCESS_O)
71 73 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
72 74 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
73 75 $(LDLIBS) -lnsl -lrpcsvc
74 76 $(POST_PROCESS) ; $(STRIP_STABS)
75 77
76 78 json/tst.usdt.o: json/usdt.h
77 79
78 80 json/usdt.h: json/usdt.d
79 81 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
80 82
81 83 CLOBBERFILES += json/usdt.h
82 84
83 85 json/usdt.o: json/usdt.d json/tst.usdt.o
84 86 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
85 87
86 88 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
87 89 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
88 90 $(POST_PROCESS) ; $(STRIP_STABS)
89 91
90 92 #
91 93 # Tests that use the next three programs rely on the binaries having
92 94 # valid CTF data.
93 95 #
94 96 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
95 97 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
96 98 $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
97 99 $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
98 100 $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
99 101 $(POST_PROCESS) ; $(STRIP_STABS)
100 102
101 103 uctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
102 104 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
103 105 $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
104 106 $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
105 107 $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
106 108 $(POST_PROCESS) ; $(STRIP_STABS)
107 109
108 110 uctf/tst.printtype.exe: uctf/tst.printtype.c
109 111 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
110 112 $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
111 113 $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
112 114 $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
113 115 $(POST_PROCESS) ; $(STRIP_STABS)
114 116
115 117 #
116 118 # This program should never have any ctf data in it.
117 119 #
118 120 uctf/tst.libtype.exe:
119 121 $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
120 122 $(POST_PROCESS) ; $(STRIP_STABS)
121 123
122 124 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
123 125 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
124 126 $(POST_PROCESS) ; $(STRIP_STABS)
125 127
126 128 usdt/args.o: usdt/args.d usdt/tst.args.o
127 129 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
128 130
129 131 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
130 132 $(LINK.c) -o usdt/tst.argmap.exe \
131 133 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
132 134 $(POST_PROCESS) ; $(STRIP_STABS)
133 135
134 136 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
135 137 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
136 138
137 139 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
138 140 $(LINK.c) -o usdt/tst.forker.exe \
139 141 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
140 142 $(POST_PROCESS) ; $(STRIP_STABS)
141 143
142 144 usdt/forker.o: usdt/forker.d usdt/tst.forker.o
143 145 $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
144 146
145 147 usdt/tst.forker.o: usdt/forker.h
146 148
147 149 usdt/forker.h: usdt/forker.d
148 150 $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
149 151
150 152 usdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
151 153 $(LINK.c) -o usdt/tst.lazyprobe.exe \
152 154 usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
153 155 $(POST_PROCESS) ; $(STRIP_STABS)
154 156
155 157 usdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
156 158 $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
157 159 -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
158 160
159 161 usdt/tst.lazyprobe.o: usdt/lazyprobe.h
160 162
161 163 usdt/lazyprobe.h: usdt/lazyprobe.d
162 164 $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
163 165
164 166 SUBDIRS = java_api
165 167 include ../../Makefile.subdirs
↓ open down ↓ |
96 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX