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 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
79 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS) $(LDLIBS)
80 $(POST_PROCESS) ; $(STRIP_STABS)
81
82 json/tst.usdt.o: json/usdt.h
83
84 json/usdt.h: json/usdt.d
85 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
86
87 CLOBBERFILES += json/usdt.h
88
89 json/usdt.o: json/usdt.d json/tst.usdt.o
90 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
91
92 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
93 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
94 $(POST_PROCESS) ; $(STRIP_STABS)
95
96 #
97 # Tests that use the next three programs rely on the binaries having
98 # valid CTF data.
99 #
100 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
101 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
|
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
80
81 CLOBBERFILES += json/usdt.h
82
83 json/usdt.o: json/usdt.d json/tst.usdt.o
84 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
85
86 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
87 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
88 $(POST_PROCESS) ; $(STRIP_STABS)
89
90 #
91 # Tests that use the next three programs rely on the binaries having
92 # valid CTF data.
93 #
94 uctf/tst.aouttype.exe: uctf/tst.aouttype.c
95 $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
|