sd: remove 'ssd' driver support
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / Makefile
blob6a09bb164db5544bf6baba4663f17312efc2ce3f
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2013, Joyent, Inc. All rights reserved.
30 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
34 # WARNING: Do not include Makefile.ctf here. That will cause tests to
35 # break.
38 include $(SRC)/Makefile.master
39 include ../Makefile.com
41 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
42 SNOOPOBJS = nfs4_xdr.o
43 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
44 CLOBBERFILES += nfs/$(SNOOPOBJS)
46 RPCSVCDIR = $(SRCTOP)/include/rpcsvc
47 RPCSVCOBJS = nfs_prot.o
48 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
49 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
50 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
52 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
53 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
55 sysevent/tst.post.exe := LDLIBS += -lsysevent
56 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
58 ustack/tst.bigstack.exe := COPTFLAG += -O1
60 nfs/%.o: $(SNOOPDIR)/%.c
61 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
62 $(POST_PROCESS_O)
63 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
64 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS)
65 $(POST_PROCESS) ; $(STRIP_STABS)
66 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
67 $(RPCGEN) -Cc $< > $@
68 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
69 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
70 $(POST_PROCESS_O)
71 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
72 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
73 $(LDLIBS) -lrpcsvc
74 $(POST_PROCESS) ; $(STRIP_STABS)
76 pid/tst.gcc.exe: pid/tst.gcc.c
77 $(CC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) $(LDLIBS)
78 $(POST_PROCESS) ; $(STRIP_STABS)
80 json/tst.usdt.o: json/usdt.h
82 json/usdt.h: json/usdt.d
83 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
85 CLOBBERFILES += json/usdt.h
87 json/usdt.o: json/usdt.d json/tst.usdt.o
88 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
90 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
91 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
92 $(POST_PROCESS) ; $(STRIP_STABS)
95 # Tests that use the next three programs rely on the binaries having
96 # valid CTF data.
98 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
99 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
100 $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
101 $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
102 $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
103 $(POST_PROCESS) ; $(STRIP_STABS)
105 uctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
106 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
107 $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
108 $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
109 $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
110 $(POST_PROCESS) ; $(STRIP_STABS)
112 uctf/tst.printtype.exe: uctf/tst.printtype.c
113 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
114 $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
115 $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
116 $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
117 $(POST_PROCESS) ; $(STRIP_STABS)
120 # This program should never have any ctf data in it.
122 uctf/tst.libtype.exe:
123 $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
124 $(POST_PROCESS) ; $(STRIP_STABS)
126 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
127 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
128 $(POST_PROCESS) ; $(STRIP_STABS)
130 usdt/args.o: usdt/args.d usdt/tst.args.o
131 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
133 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
134 $(LINK.c) -o usdt/tst.argmap.exe \
135 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
136 $(POST_PROCESS) ; $(STRIP_STABS)
138 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
139 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
141 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
142 $(LINK.c) -o usdt/tst.forker.exe \
143 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
144 $(POST_PROCESS) ; $(STRIP_STABS)
146 usdt/forker.o: usdt/forker.d usdt/tst.forker.o
147 $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
149 usdt/tst.forker.o: usdt/forker.h
151 usdt/forker.h: usdt/forker.d
152 $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
154 usdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
155 $(LINK.c) -o usdt/tst.lazyprobe.exe \
156 usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
157 $(POST_PROCESS) ; $(STRIP_STABS)
159 usdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
160 $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
161 -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
163 usdt/tst.lazyprobe.o: usdt/lazyprobe.h
165 usdt/lazyprobe.h: usdt/lazyprobe.d
166 $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h