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