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