1 2633 ahl # 2 2633 ahl # CDDL HEADER START 3 2633 ahl # 4 2633 ahl # The contents of this file are subject to the terms of the 5 2633 ahl # Common Development and Distribution License (the "License"). 6 2633 ahl # You may not use this file except in compliance with the License. 7 2633 ahl # 8 2633 ahl # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 2633 ahl # or http://www.opensolaris.org/os/licensing. 10 2633 ahl # See the License for the specific language governing permissions 11 2633 ahl # and limitations under the License. 12 2633 ahl # 13 2633 ahl # When distributing Covered Code, include this CDDL HEADER in each 14 2633 ahl # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 2633 ahl # If applicable, add the following below this CDDL HEADER, with the 16 2633 ahl # fields enclosed by brackets "[]" replaced with your own identifying 17 2633 ahl # information: Portions Copyright [yyyy] [name of copyright owner] 18 2633 ahl # 19 2633 ahl # CDDL HEADER END 20 2633 ahl # 21 2633 ahl 22 2633 ahl # 23 5982 ahl # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 2633 ahl # Use is subject to license terms. 25 2633 ahl # 26 3944 ahl # ident "%Z%%M% %I% %E% SMI" 27 3944 ahl # 28 2633 ahl 29 2804 tomee include $(SRC)/Makefile.master 30 2633 ahl include ../Makefile.com 31 2633 ahl 32 5647 samf SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop 33 5647 samf SNOOPOBJS = nfs4_xdr.o 34 5647 samf SNOOPSRCS = ${SNOOPOBJS:%.o=%.c} 35 5647 samf CLOBBERFILES += nfs/$(SNOOPOBJS) 36 5982 ahl 37 5982 ahl RPCSVCDIR = $(SRC)/head/rpcsvc 38 5982 ahl RPCSVCOBJS = nfs_prot.o 39 5982 ahl RPCSVCSRCS = ${RPCSVCOBJS:%o=%c} 40 5982 ahl CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS) 41 5647 samf 42 3944 ahl fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace 43 3944 ahl fasttrap/tst.stack.exe := LDLIBS += -ldtrace 44 3490 eschrock 45 3944 ahl sysevent/tst.post.exe := LDLIBS += -lsysevent 46 3944 ahl sysevent/tst.post_chan.exe := LDLIBS += -lsysevent 47 2633 ahl 48 3682 jhaslam ustack/tst.bigstack.exe := COPTFLAG += -xO1 49 3682 jhaslam 50 3944 ahl GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc 51 5647 samf 52 5647 samf nfs/%.o: $(SNOOPDIR)/%.c 53 5647 samf $(COMPILE.c) -o $@ $< -I$(SNOOPDIR) 54 5647 samf $(POST_PROCESS_O) 55 5647 samf nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS) 56 5647 samf $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl 57 5982 ahl $(POST_PROCESS) ; $(STRIP_STABS) 58 5982 ahl $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x 59 5982 ahl $(RPCGEN) -Cc $< > $@ 60 5982 ahl nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS) 61 5982 ahl $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS) 62 5982 ahl $(POST_PROCESS_O) 63 5982 ahl nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS) 64 5982 ahl $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \ 65 5982 ahl $(LDLIBS) -lnsl -lrpcsvc 66 5647 samf $(POST_PROCESS) ; $(STRIP_STABS) 67 2633 ahl 68 2633 ahl pid/tst.gcc.exe: pid/tst.gcc.c 69 3944 ahl $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) 70 3944 ahl $(POST_PROCESS) ; $(STRIP_STABS) 71 2633 ahl 72 2633 ahl usdt/tst.args.exe: usdt/tst.args.o usdt/args.o 73 3944 ahl $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS) 74 3944 ahl $(POST_PROCESS) ; $(STRIP_STABS) 75 2633 ahl 76 2633 ahl usdt/args.o: usdt/args.d usdt/tst.args.o 77 3944 ahl $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o 78 2633 ahl 79 2633 ahl usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o 80 3944 ahl $(LINK.c) -o usdt/tst.argmap.exe usdt/tst.argmap.o usdt/argmap.o \ 81 3944 ahl $(LDLIBS) 82 3944 ahl $(POST_PROCESS) ; $(STRIP_STABS) 83 2633 ahl 84 2633 ahl usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o 85 3944 ahl $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o 86 2804 tomee 87 4273 ahl usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o 88 4273 ahl $(LINK.c) -o usdt/tst.forker.exe usdt/tst.forker.o usdt/forker.o \ 89 4273 ahl $(LDLIBS) 90 4273 ahl $(POST_PROCESS) ; $(STRIP_STABS) 91 4273 ahl 92 4273 ahl usdt/forker.o: usdt/forker.d usdt/tst.forker.o 93 4273 ahl $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o 94 4273 ahl 95 4273 ahl usdt/tst.forker.o: usdt/forker.h 96 4273 ahl 97 4273 ahl usdt/forker.h: usdt/forker.d 98 4273 ahl $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h 99 4273 ahl 100 2804 tomee SUBDIRS = java_api 101 2804 tomee include ../../Makefile.subdirs 102