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 #
31
32 #
33 # WARNING: Do not include Makefile.ctf here. That will cause tests to
34 # break.
35 #
36
37 include $(SRC)/Makefile.master
38 include ../Makefile.com
39
40 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
41 SNOOPOBJS = nfs4_xdr.o
42 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
43 CLOBBERFILES += nfs/$(SNOOPOBJS)
44
45 RPCSVCDIR = $(SRC)/head/rpcsvc
46 RPCSVCOBJS = nfs_prot.o
47 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
48 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
49 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
50
51 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
52 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
53
54 sysevent/tst.post.exe := LDLIBS += -lsysevent
55 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
56
57 ustack/tst.bigstack.exe := COPTFLAG += -xO1
58
59 GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
60
61 nfs/%.o: $(SNOOPDIR)/%.c
62 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
63 $(POST_PROCESS_O)
64 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
65 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
66 $(POST_PROCESS) ; $(STRIP_STABS)
67 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
68 $(RPCGEN) -Cc $< > $@
69 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
70 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
71 $(POST_PROCESS_O)
72 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
73 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
74 $(LDLIBS) -lnsl -lrpcsvc
75 $(POST_PROCESS) ; $(STRIP_STABS)
76
77 pid/tst.gcc.exe: pid/tst.gcc.c
|
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 2014 Gary Mills
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 = $(ADJUST_OPT1) -_cc=-xO1 -_gcc=-O1
59
60 GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
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 pid/tst.gcc.exe: pid/tst.gcc.c
|