Makefile revision a386cc11a86ecb60f5a48078d22c1500e2ad003e
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2012 by Delphix. All rights reserved.
1N/A# Copyright (c) 2013, Joyent, Inc. All rights reserved.
1N/A#
1N/A
1N/A#
1N/A# WARNING: Do not include Makefile.ctf here. That will cause tests to
1N/A# break.
1N/A#
1N/A
1N/Ainclude $(SRC)/Makefile.master
1N/Ainclude ../Makefile.com
1N/A
1N/ASNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
1N/ASNOOPOBJS = nfs4_xdr.o
1N/ASNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
1N/ACLOBBERFILES += nfs/$(SNOOPOBJS)
1N/A
1N/ARPCSVCDIR = $(SRC)/head/rpcsvc
1N/ARPCSVCOBJS = nfs_prot.o
1N/ARPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
1N/ACLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
1N/ACLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
1N/A
1N/Afasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
1N/Afasttrap/tst.stack.exe := LDLIBS += -ldtrace
1N/A
1N/Asysevent/tst.post.exe := LDLIBS += -lsysevent
1N/Asysevent/tst.post_chan.exe := LDLIBS += -lsysevent
1N/A
1N/Austack/tst.bigstack.exe := COPTFLAG += -xO1
1N/A
1N/AGCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
1N/A
1N/Anfs/%.o: $(SNOOPDIR)/%.c
1N/A $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
1N/A $(POST_PROCESS_O)
1N/Anfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
1N/A $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A$(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
1N/A $(RPCGEN) -Cc $< > $@
1N/Anfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
1N/A $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
1N/A $(POST_PROCESS_O)
1N/Anfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
1N/A $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
1N/A $(LDLIBS) -lnsl -lrpcsvc
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Apid/tst.gcc.exe: pid/tst.gcc.c
1N/A $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ajson/tst.usdt.o: json/usdt.h
1N/A
1N/Ajson/usdt.h: json/usdt.d
1N/A $(DTRACE) -h -s json/usdt.d -o json/usdt.h
1N/A
1N/Ajson/usdt.o: json/usdt.d json/tst.usdt.o
1N/A $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
1N/A
1N/Ajson/tst.usdt.exe: json/tst.usdt.o json/usdt.o
1N/A $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/A#
1N/A# Tests that use the next three programs rely on the binaries having
1N/A# valid CTF data.
1N/A#
1N/Auctf/tst.aouttype.exe: uctf/tst.aouttype.c
1N/A $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
1N/A $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
1N/A $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
1N/A $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Auctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
1N/A $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
1N/A $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
1N/A $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
1N/A $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Auctf/tst.printtype.exe: uctf/tst.printtype.c
1N/A $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
1N/A $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
1N/A $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
1N/A $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/A#
1N/A# This program should never have any ctf data in it.
1N/A#
1N/Auctf/tst.libtype.exe:
1N/A $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ausdt/tst.args.exe: usdt/tst.args.o usdt/args.o
1N/A $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ausdt/args.o: usdt/args.d usdt/tst.args.o
1N/A $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
1N/A
1N/Ausdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
1N/A $(LINK.c) -o usdt/tst.argmap.exe \
1N/A usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ausdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
1N/A $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
1N/A
1N/Ausdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
1N/A $(LINK.c) -o usdt/tst.forker.exe \
1N/A usdt/tst.forker.o usdt/forker.o $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ausdt/forker.o: usdt/forker.d usdt/tst.forker.o
1N/A $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
1N/A
1N/Ausdt/tst.forker.o: usdt/forker.h
1N/A
1N/Ausdt/forker.h: usdt/forker.d
1N/A $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
1N/A
1N/Ausdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
1N/A $(LINK.c) -o usdt/tst.lazyprobe.exe \
1N/A usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
1N/A $(POST_PROCESS) ; $(STRIP_STABS)
1N/A
1N/Ausdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
1N/A $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
1N/A -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
1N/A
1N/Ausdt/tst.lazyprobe.o: usdt/lazyprobe.h
1N/A
1N/Ausdt/lazyprobe.h: usdt/lazyprobe.d
1N/A $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
1N/A
1N/ASUBDIRS = java_api
1N/Ainclude ../../Makefile.subdirs
1N/A