9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# and limitations under the License.
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# CDDL HEADER END
e1adf50c175098121bb2d0ddc73adb34d502328eahl# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use is subject to license terms.
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# WARNING: Do not include Makefile.ctf here. That will cause tests to
e1adf50c175098121bb2d0ddc73adb34d502328eahlCLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
f3b585ce799a83688c5532c430f6133f098431c2samf $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
d50bcaae2118610560f2b107d0d282315e47e4e4Andrew Stormont $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) $(LDLIBS)
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
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)
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Tests that use the next three programs rely on the binaries having
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# valid CTF data.
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 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 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# This program should never have any ctf data in it.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
73427c57f824c3ec3b396181b163f37d50c5b3b1ahl $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
dcafa303bc5c0028c4ebf51300caac6e2ea88d74ahl $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhalusdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
edb348833aaacfa1176e502ad38875fd0b2717abAdam H. Leventhal $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \