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) 2013, Joyent, Inc. All rights reserved.
30 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
31 #
32
33 #
34 # WARNING: Do not include Makefile.ctf here. That will cause tests to
35 # break.
36 #
37
38 include $(SRC)/Makefile.master
39 include ../Makefile.com
40
41 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
42 SNOOPOBJS = nfs4_xdr.o
43 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
44 CLOBBERFILES += nfs/$(SNOOPOBJS)
45
46 RPCSVCDIR = $(SRC)/head/rpcsvc
47 RPCSVCOBJS = nfs_prot.o
48 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
49 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
50 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
51
52 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
53 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
54
55 sysevent/tst.post.exe := LDLIBS += -lsysevent
56 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
57
58 ustack/tst.bigstack.exe := COPTFLAG += -xO1
59
60 nfs/%.o: $(SNOOPDIR)/%.c
61 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
62 $(POST_PROCESS_O)
63 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
64 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
65 $(POST_PROCESS) ; $(STRIP_STABS)
66 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
67 $(RPCGEN) -Cc $< > $@
68 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
69 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
70 $(POST_PROCESS_O)
71 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
72 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
73 $(LDLIBS) -lnsl -lrpcsvc
74 $(POST_PROCESS) ; $(STRIP_STABS)
75
76 json/tst.usdt.o: json/usdt.h
77
78 json/usdt.h: json/usdt.d
79 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
|
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 2015 Nexenta Systems, Inc. All rights reserved.
30 # Copyright 2018 Joyent, Inc.
31 #
32
33 #
34 # WARNING: Do not include Makefile.ctf here. That will cause tests to
35 # break.
36 #
37
38 include $(SRC)/Makefile.master
39 include ../Makefile.com
40
41 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
42 SNOOPOBJS = nfs4_xdr.o
43 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
44 CLOBBERFILES += nfs/$(SNOOPOBJS)
45
46 RPCSVCDIR = $(SRC)/head/rpcsvc
47 RPCSVCOBJS = nfs_prot.o
48 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
49 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
50 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
51
52 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
53 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
54
55 sysevent/tst.post.exe := LDLIBS += -lsysevent
56 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
57
58 ustack/tst.bigstack.exe := COPTFLAG += -xO1
59
60 CSTD = $(CSTD_GNU99)
61
62 nfs/%.o: $(SNOOPDIR)/%.c
63 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
64 $(POST_PROCESS_O)
65 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
66 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
67 $(POST_PROCESS) ; $(STRIP_STABS)
68 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
69 $(RPCGEN) -Cc $< > $@
70 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
71 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
72 $(POST_PROCESS_O)
73 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
74 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
75 $(LDLIBS) -lnsl -lrpcsvc
76 $(POST_PROCESS) ; $(STRIP_STABS)
77
78 json/tst.usdt.o: json/usdt.h
79
80 json/usdt.h: json/usdt.d
81 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
|