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
27 #
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 #
30
31 include $(SRC)/Makefile.master
32 include ../Makefile.com
33
34 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
35 SNOOPOBJS = nfs4_xdr.o
36 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
37 CLOBBERFILES += nfs/$(SNOOPOBJS)
38
39 RPCSVCDIR = $(SRC)/head/rpcsvc
40 RPCSVCOBJS = nfs_prot.o
41 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
42 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
43
44 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
45 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
46
47 sysevent/tst.post.exe := LDLIBS += -lsysevent
48 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
54 nfs/%.o: $(SNOOPDIR)/%.c
55 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
56 $(POST_PROCESS_O)
57 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
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
68 $(POST_PROCESS) ; $(STRIP_STABS)
69
70 pid/tst.gcc.exe: pid/tst.gcc.c
71 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
72 $(POST_PROCESS) ; $(STRIP_STABS)
73
74 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
75 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
76 $(POST_PROCESS) ; $(STRIP_STABS)
77
78 usdt/args.o: usdt/args.d usdt/tst.args.o
79 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
80
81 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
82 $(LINK.c) -o usdt/tst.argmap.exe \
83 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
84 $(POST_PROCESS) ; $(STRIP_STABS)
85
86 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
87 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
88
89 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
90 $(LINK.c) -o usdt/tst.forker.exe \
91 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
92 $(POST_PROCESS) ; $(STRIP_STABS)
93
|
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
27 #
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2012, Joyent, Inc. All rights reserved.
30 #
31
32 include $(SRC)/Makefile.master
33 include ../Makefile.com
34
35 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
36 SNOOPOBJS = nfs4_xdr.o
37 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
38 CLOBBERFILES += nfs/$(SNOOPOBJS)
39
40 RPCSVCDIR = $(SRC)/head/rpcsvc
41 RPCSVCOBJS = nfs_prot.o
42 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
43 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
44
45 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
46 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
47
48 sysevent/tst.post.exe := LDLIBS += -lsysevent
49 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
55 nfs/%.o: $(SNOOPDIR)/%.c
56 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
57 $(POST_PROCESS_O)
58 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
59 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
60 $(POST_PROCESS) ; $(STRIP_STABS)
61 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
62 $(RPCGEN) -Cc $< > $@
63 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
64 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
65 $(POST_PROCESS_O)
66 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
67 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
68 $(LDLIBS) -lnsl -lrpcsvc
69 $(POST_PROCESS) ; $(STRIP_STABS)
70
71 pid/tst.gcc.exe: pid/tst.gcc.c
72 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
73 $(POST_PROCESS) ; $(STRIP_STABS)
74
75 json/tst.usdt.o: json/usdt.h
76
77 json/usdt.h: json/usdt.d
78 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
79
80 json/usdt.o: json/usdt.d json/tst.usdt.o
81 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
82
83 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
84 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
85 $(POST_PROCESS) ; $(STRIP_STABS)
86
87 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
88 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
89 $(POST_PROCESS) ; $(STRIP_STABS)
90
91 usdt/args.o: usdt/args.d usdt/tst.args.o
92 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
93
94 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
95 $(LINK.c) -o usdt/tst.argmap.exe \
96 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
97 $(POST_PROCESS) ; $(STRIP_STABS)
98
99 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
100 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
101
102 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
103 $(LINK.c) -o usdt/tst.forker.exe \
104 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
105 $(POST_PROCESS) ; $(STRIP_STABS)
106
|