9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2012, Joyent, Inc. All rights reserved.
30 #
31
32 include $(SRC)/Makefile.master
33 include ../Makefile.com
34
35 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
36 SNOOPOBJS = nfs4_xdr.o
37 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
38 CLOBBERFILES += nfs/$(SNOOPOBJS)
39
40 RPCSVCDIR = $(SRC)/head/rpcsvc
41 RPCSVCOBJS = nfs_prot.o
42 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
43 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
44 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
45
46 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
47 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
48
49 sysevent/tst.post.exe := LDLIBS += -lsysevent
68 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
69 $(LDLIBS) -lnsl -lrpcsvc
70 $(POST_PROCESS) ; $(STRIP_STABS)
71
72 pid/tst.gcc.exe: pid/tst.gcc.c
73 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
74 $(POST_PROCESS) ; $(STRIP_STABS)
75
76 json/tst.usdt.o: json/usdt.h
77
78 json/usdt.h: json/usdt.d
79 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
80
81 json/usdt.o: json/usdt.d json/tst.usdt.o
82 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
83
84 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
85 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
86 $(POST_PROCESS) ; $(STRIP_STABS)
87
88 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
89 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
90 $(POST_PROCESS) ; $(STRIP_STABS)
91
92 usdt/args.o: usdt/args.d usdt/tst.args.o
93 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
94
95 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
96 $(LINK.c) -o usdt/tst.argmap.exe \
97 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
98 $(POST_PROCESS) ; $(STRIP_STABS)
99
100 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
101 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
102
103 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
104 $(LINK.c) -o usdt/tst.forker.exe \
105 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
106 $(POST_PROCESS) ; $(STRIP_STABS)
107
|
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2013, Joyent, Inc. All rights reserved.
30 #
31
32 #
33 # WARNING: Do not include Makefile.ctf here. That will cause tests to
34 # break.
35 #
36
37 include $(SRC)/Makefile.master
38 include ../Makefile.com
39
40 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
41 SNOOPOBJS = nfs4_xdr.o
42 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
43 CLOBBERFILES += nfs/$(SNOOPOBJS)
44
45 RPCSVCDIR = $(SRC)/head/rpcsvc
46 RPCSVCOBJS = nfs_prot.o
47 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
48 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
49 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
50
51 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
52 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
53
54 sysevent/tst.post.exe := LDLIBS += -lsysevent
73 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
74 $(LDLIBS) -lnsl -lrpcsvc
75 $(POST_PROCESS) ; $(STRIP_STABS)
76
77 pid/tst.gcc.exe: pid/tst.gcc.c
78 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
79 $(POST_PROCESS) ; $(STRIP_STABS)
80
81 json/tst.usdt.o: json/usdt.h
82
83 json/usdt.h: json/usdt.d
84 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
85
86 json/usdt.o: json/usdt.d json/tst.usdt.o
87 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
88
89 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
90 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
91 $(POST_PROCESS) ; $(STRIP_STABS)
92
93 #
94 # Tests that use the next three programs rely on the binaries having
95 # valid CTF data.
96 #
97 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
98 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
99 $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
100 $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
101 $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
102 $(POST_PROCESS) ; $(STRIP_STABS)
103
104 uctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
105 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
106 $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
107 $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
108 $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
109 $(POST_PROCESS) ; $(STRIP_STABS)
110
111 uctf/tst.printtype.exe: uctf/tst.printtype.c
112 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
113 $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
114 $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
115 $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
116 $(POST_PROCESS) ; $(STRIP_STABS)
117
118 #
119 # This program should never have any ctf data in it.
120 #
121 uctf/tst.libtype.exe:
122 $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
123 $(POST_PROCESS) ; $(STRIP_STABS)
124
125 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
126 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
127 $(POST_PROCESS) ; $(STRIP_STABS)
128
129 usdt/args.o: usdt/args.d usdt/tst.args.o
130 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
131
132 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
133 $(LINK.c) -o usdt/tst.argmap.exe \
134 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
135 $(POST_PROCESS) ; $(STRIP_STABS)
136
137 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
138 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
139
140 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
141 $(LINK.c) -o usdt/tst.forker.exe \
142 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
143 $(POST_PROCESS) ; $(STRIP_STABS)
144
|