9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# or http://www.opensolaris.org/os/licensing.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
e1adf50c175098121bb2d0ddc73adb34d502328eahl# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal#
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal# Copyright (c) 2012 by Delphix. All rights reserved.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Copyright (c) 2013, Joyent, Inc. All rights reserved.
d50bcaae2118610560f2b107d0d282315e47e4e4Andrew Stormont# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# WARNING: Do not include Makefile.ctf here. That will cause tests to
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# break.
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeinclude $(SRC)/Makefile.master
9512fe850e98fdd448c638ca63fdd92a8a510255ahlinclude ../Makefile.com
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
f3b585ce799a83688c5532c430f6133f098431c2samfSNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
f3b585ce799a83688c5532c430f6133f098431c2samfSNOOPOBJS = nfs4_xdr.o
f3b585ce799a83688c5532c430f6133f098431c2samfSNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
f3b585ce799a83688c5532c430f6133f098431c2samfCLOBBERFILES += nfs/$(SNOOPOBJS)
f3b585ce799a83688c5532c430f6133f098431c2samf
e1adf50c175098121bb2d0ddc73adb34d502328eahlRPCSVCDIR = $(SRC)/head/rpcsvc
e1adf50c175098121bb2d0ddc73adb34d502328eahlRPCSVCOBJS = nfs_prot.o
e1adf50c175098121bb2d0ddc73adb34d502328eahlRPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
e1adf50c175098121bb2d0ddc73adb34d502328eahlCLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossCLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
e1adf50c175098121bb2d0ddc73adb34d502328eahl
73427c57f824c3ec3b396181b163f37d50c5b3b1ahlfasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
73427c57f824c3ec3b396181b163f37d50c5b3b1ahlfasttrap/tst.stack.exe := LDLIBS += -ldtrace
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
73427c57f824c3ec3b396181b163f37d50c5b3b1ahlsysevent/tst.post.exe := LDLIBS += -lsysevent
73427c57f824c3ec3b396181b163f37d50c5b3b1ahlsysevent/tst.post_chan.exe := LDLIBS += -lsysevent
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
b8fac8e162eda7e98db13dfa3e439e43f90f41d9jhaslamustack/tst.bigstack.exe := COPTFLAG += -xO1
b8fac8e162eda7e98db13dfa3e439e43f90f41d9jhaslam
73427c57f824c3ec3b396181b163f37d50c5b3b1ahlGCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
f3b585ce799a83688c5532c430f6133f098431c2samfnfs/%.o: $(SNOOPDIR)/%.c
f3b585ce799a83688c5532c430f6133f098431c2samf $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
f3b585ce799a83688c5532c430f6133f098431c2samf $(POST_PROCESS_O)
f3b585ce799a83688c5532c430f6133f098431c2samfnfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
f3b585ce799a83688c5532c430f6133f098431c2samf $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
f3b585ce799a83688c5532c430f6133f098431c2samf $(POST_PROCESS) ; $(STRIP_STABS)
e1adf50c175098121bb2d0ddc73adb34d502328eahl$(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(RPCGEN) -Cc $< > $@
e1adf50c175098121bb2d0ddc73adb34d502328eahlnfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(POST_PROCESS_O)
e1adf50c175098121bb2d0ddc73adb34d502328eahlnfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(LDLIBS) -lnsl -lrpcsvc
e1adf50c175098121bb2d0ddc73adb34d502328eahl $(POST_PROCESS) ; $(STRIP_STABS)
f3b585ce799a83688c5532c430f6133f098431c2samf
9512fe850e98fdd448c638ca63fdd92a8a510255ahlpid/tst.gcc.exe: pid/tst.gcc.c
d50bcaae2118610560f2b107d0d282315e47e4e4Andrew Stormont $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) $(LDLIBS)
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(POST_PROCESS) ; $(STRIP_STABS)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulowjson/tst.usdt.o: json/usdt.h
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulowjson/usdt.h: json/usdt.d
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow $(DTRACE) -h -s json/usdt.d -o json/usdt.h
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow
b52c8fbe58cfd9f349fdfa6cc5cb6f5731946a2bRichard PALOCLOBBERFILES += json/usdt.h
b52c8fbe58cfd9f349fdfa6cc5cb6f5731946a2bRichard PALO
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulowjson/usdt.o: json/usdt.d json/tst.usdt.o
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulowjson/tst.usdt.exe: json/tst.usdt.o json/usdt.o
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow $(POST_PROCESS) ; $(STRIP_STABS)
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Tests that use the next three programs rely on the binaries having
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# valid CTF data.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchiuctf/tst.aouttype.exe: uctf/tst.aouttype.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(POST_PROCESS) ; $(STRIP_STABS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchiuctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(POST_PROCESS) ; $(STRIP_STABS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchiuctf/tst.printtype.exe: uctf/tst.printtype.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(POST_PROCESS) ; $(STRIP_STABS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# This program should never have any ctf data in it.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi#
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchiuctf/tst.libtype.exe:
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(POST_PROCESS) ; $(STRIP_STABS)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi
9512fe850e98fdd448c638ca63fdd92a8a510255ahlusdt/tst.args.exe: usdt/tst.args.o usdt/args.o
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(POST_PROCESS) ; $(STRIP_STABS)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlusdt/args.o: usdt/args.d usdt/tst.args.o
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlusdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(LINK.c) -o usdt/tst.argmap.exe \
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(POST_PROCESS) ; $(STRIP_STABS)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlusdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomee
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahlusdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(LINK.c) -o usdt/tst.forker.exe \
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal usdt/tst.forker.o usdt/forker.o $(LDLIBS)
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl $(POST_PROCESS) ; $(STRIP_STABS)
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahlusdt/forker.o: usdt/forker.d usdt/tst.forker.o
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahlusdt/tst.forker.o: usdt/forker.h
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahlusdt/forker.h: usdt/forker.d
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(LINK.c) -o usdt/tst.lazyprobe.exe \
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(POST_PROCESS) ; $(STRIP_STABS)
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/tst.lazyprobe.o: usdt/lazyprobe.h
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/lazyprobe.h: usdt/lazyprobe.d
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeSUBDIRS = java_api
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeinclude ../../Makefile.subdirs