usr/src/cmd/dtrace/test/tst/common/Makefile
changeset 5982 6eafe3bf5f9e
parent 5647 738702b10756
child 6543 465433824d87
equal deleted inserted replaced
5981:5645812e651f 5982:6eafe3bf5f9e
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
    23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
    24 # Use is subject to license terms.
    24 # Use is subject to license terms.
    25 #
    25 #
    26 # ident	"%Z%%M%	%I%	%E% SMI"
    26 # ident	"%Z%%M%	%I%	%E% SMI"
    27 #
    27 #
    28 
    28 
    31 
    31 
    32 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
    32 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
    33 SNOOPOBJS = nfs4_xdr.o
    33 SNOOPOBJS = nfs4_xdr.o
    34 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
    34 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
    35 CLOBBERFILES += nfs/$(SNOOPOBJS)
    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)
    36 
    41 
    37 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
    42 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
    38 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
    43 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
    39 
    44 
    40 proc/tst.sigwait.exe := LDLIBS += -lrt
    45 proc/tst.sigwait.exe := LDLIBS += -lrt
    49 nfs/%.o: $(SNOOPDIR)/%.c
    54 nfs/%.o: $(SNOOPDIR)/%.c
    50 	$(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
    55 	$(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
    51 	$(POST_PROCESS_O)
    56 	$(POST_PROCESS_O)
    52 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
    57 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
    53 	$(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
    58 	$(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
       
    59 	$(POST_PROCESS) ; $(STRIP_STABS)
       
    60 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
       
    61 	$(RPCGEN) -Cc $< > $@
       
    62 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
       
    63 	$(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
       
    64 	$(POST_PROCESS_O)
       
    65 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
       
    66 	$(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
       
    67 	$(LDLIBS) -lnsl -lrpcsvc
    54 	$(POST_PROCESS) ; $(STRIP_STABS)
    68 	$(POST_PROCESS) ; $(STRIP_STABS)
    55 
    69 
    56 pid/tst.gcc.exe: pid/tst.gcc.c
    70 pid/tst.gcc.exe: pid/tst.gcc.c
    57 	$(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
    71 	$(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
    58 	$(POST_PROCESS) ; $(STRIP_STABS)
    72 	$(POST_PROCESS) ; $(STRIP_STABS)