usr/src/cmd/dtrace/test/tst/common/Makefile
author ahl
Wed, 06 Feb 2008 17:59:23 -0800
changeset 5982 6eafe3bf5f9e
parent 5647 738702b10756
child 6543 465433824d87
permissions -rw-r--r--
PSARC 2008/050 DTrace NFS v3 Provider 6660173 PSARC 2008/050 DTrace NFS v3 Provider 6660179 fix stability of NFS v4 provider
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     1
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     2
# CDDL HEADER START
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     3
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     7
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    10
# See the License for the specific language governing permissions
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    11
# and limitations under the License.
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    12
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    18
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    19
# CDDL HEADER END
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    20
#
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    21
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    22
#
5982
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    23
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    24
# Use is subject to license terms.
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    25
#
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    26
# ident	"%Z%%M%	%I%	%E% SMI"
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    27
#
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    28
2804
e8e3422f18c2 6465302 integrate Java DTrace API tests with DTrace test suite
tomee
parents: 2633
diff changeset
    29
include $(SRC)/Makefile.master
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    30
include ../Makefile.com
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    31
5647
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    32
SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    33
SNOOPOBJS = nfs4_xdr.o
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    34
SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    35
CLOBBERFILES += nfs/$(SNOOPOBJS)
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    36
5982
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    37
RPCSVCDIR = $(SRC)/head/rpcsvc
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    38
RPCSVCOBJS = nfs_prot.o
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    39
RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    40
CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    41
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    42
fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    43
fasttrap/tst.stack.exe := LDLIBS += -ldtrace
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    44
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    45
proc/tst.sigwait.exe := LDLIBS += -lrt
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    46
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    47
sysevent/tst.post.exe := LDLIBS += -lsysevent
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    48
sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
3490
c2cc0536565d PSARC 2007/036 sysevent DTrace provider
eschrock
parents: 2804
diff changeset
    49
3682
48f0fd311ddb 6512250 dtrace_getustack_common() could be improved
jhaslam
parents: 3490
diff changeset
    50
ustack/tst.bigstack.exe := COPTFLAG += -xO1
48f0fd311ddb 6512250 dtrace_getustack_common() could be improved
jhaslam
parents: 3490
diff changeset
    51
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    52
GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    53
5647
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    54
nfs/%.o: $(SNOOPDIR)/%.c
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    55
	$(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    56
	$(POST_PROCESS_O)
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    57
nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    58
	$(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    59
	$(POST_PROCESS) ; $(STRIP_STABS)
5982
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    60
$(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    61
	$(RPCGEN) -Cc $< > $@
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    62
nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    63
	$(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    64
	$(POST_PROCESS_O)
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    65
nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    66
	$(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    67
	$(LDLIBS) -lnsl -lrpcsvc
6eafe3bf5f9e PSARC 2008/050 DTrace NFS v3 Provider
ahl
parents: 5647
diff changeset
    68
	$(POST_PROCESS) ; $(STRIP_STABS)
5647
738702b10756 PSARC/2007/663 DTrace NFS v4 Provider
samf
parents: 4273
diff changeset
    69
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    70
pid/tst.gcc.exe: pid/tst.gcc.c
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    71
	$(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    72
	$(POST_PROCESS) ; $(STRIP_STABS)
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    73
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    74
usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    75
	$(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    76
	$(POST_PROCESS) ; $(STRIP_STABS)
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    77
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    78
usdt/args.o: usdt/args.d usdt/tst.args.o
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    79
	$(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    80
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    81
usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    82
	$(LINK.c) -o usdt/tst.argmap.exe usdt/tst.argmap.o usdt/argmap.o \
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    83
		$(LDLIBS)
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    84
	$(POST_PROCESS) ; $(STRIP_STABS)
2633
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    85
71bab08d24b2 6464285 integrate the DTrace test suite
ahl
parents:
diff changeset
    86
usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
3944
75371f172291 6484266 fasttrap needs to check for duplicate offsets
ahl
parents: 3682
diff changeset
    87
	$(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
2804
e8e3422f18c2 6465302 integrate Java DTrace API tests with DTrace test suite
tomee
parents: 2633
diff changeset
    88
4273
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    89
usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    90
	$(LINK.c) -o usdt/tst.forker.exe usdt/tst.forker.o usdt/forker.o \
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    91
		$(LDLIBS)
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    92
	$(POST_PROCESS) ; $(STRIP_STABS)
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    93
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    94
usdt/forker.o: usdt/forker.d usdt/tst.forker.o
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    95
	$(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    96
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    97
usdt/tst.forker.o: usdt/forker.h
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    98
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
    99
usdt/forker.h: usdt/forker.d
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
   100
	$(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
c8eee992faea 6535590 Pid provider doesn't work with probe "main:entry"
ahl
parents: 3944
diff changeset
   101
2804
e8e3422f18c2 6465302 integrate Java DTrace API tests with DTrace test suite
tomee
parents: 2633
diff changeset
   102
SUBDIRS = java_api
e8e3422f18c2 6465302 integrate Java DTrace API tests with DTrace test suite
tomee
parents: 2633
diff changeset
   103
include ../../Makefile.subdirs