1#
2# CDDL HEADER START
3#
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.
7#
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.
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 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include $(SRC)/Makefile.master
30include ../Makefile.com
31
32fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
33fasttrap/tst.stack.exe := LDLIBS += -ldtrace
34
35proc/tst.sigwait.exe := LDLIBS += -lrt
36
37sysevent/tst.post.exe := LDLIBS += -lsysevent
38sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
39
40ustack/tst.bigstack.exe := COPTFLAG += -xO1
41
42GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
43
44pid/tst.gcc.exe: pid/tst.gcc.c
45	$(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
46	$(POST_PROCESS) ; $(STRIP_STABS)
47
48usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
49	$(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
50	$(POST_PROCESS) ; $(STRIP_STABS)
51
52usdt/args.o: usdt/args.d usdt/tst.args.o
53	$(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
54
55usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
56	$(LINK.c) -o usdt/tst.argmap.exe usdt/tst.argmap.o usdt/argmap.o \
57		$(LDLIBS)
58	$(POST_PROCESS) ; $(STRIP_STABS)
59
60usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
61	$(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
62
63usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
64	$(LINK.c) -o usdt/tst.forker.exe usdt/tst.forker.o usdt/forker.o \
65		$(LDLIBS)
66	$(POST_PROCESS) ; $(STRIP_STABS)
67
68usdt/forker.o: usdt/forker.d usdt/tst.forker.o
69	$(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
70
71usdt/tst.forker.o: usdt/forker.h
72
73usdt/forker.h: usdt/forker.d
74	$(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
75
76SUBDIRS = java_api
77include ../../Makefile.subdirs
78