Print this page
9128 cw(1onbld) should be able to run multiple shadows
9129 file-locking tests shouldn't build multiple source files in one compiler invocation
9130 DTrace tst.gcc.d isn't useful
9132 cw(1onbld) shouldn't shadow pure preprocessing
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/common/Makefile
          +++ new/usr/src/cmd/dtrace/test/tst/common/Makefile
↓ open down ↓ 49 lines elided ↑ open up ↑
  50   50  CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
  51   51  
  52   52  fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
  53   53  fasttrap/tst.stack.exe := LDLIBS += -ldtrace
  54   54  
  55   55  sysevent/tst.post.exe := LDLIBS += -lsysevent
  56   56  sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
  57   57  
  58   58  ustack/tst.bigstack.exe := COPTFLAG += -xO1
  59   59  
  60      -GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
  61      -
  62   60  nfs/%.o: $(SNOOPDIR)/%.c
  63   61          $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
  64   62          $(POST_PROCESS_O)
  65   63  nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
  66   64          $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
  67   65          $(POST_PROCESS) ; $(STRIP_STABS)
  68   66  $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
  69   67          $(RPCGEN) -Cc $< > $@
  70   68  nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
  71   69          $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
  72   70          $(POST_PROCESS_O)
  73   71  nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
  74   72          $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
  75   73          $(LDLIBS) -lnsl -lrpcsvc
  76   74          $(POST_PROCESS) ; $(STRIP_STABS)
  77   75  
  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   76  json/tst.usdt.o: json/usdt.h
  83   77  
  84   78  json/usdt.h: json/usdt.d
  85   79          $(DTRACE) -h -s json/usdt.d -o json/usdt.h
  86   80  
  87   81  CLOBBERFILES += json/usdt.h
  88   82  
  89   83  json/usdt.o: json/usdt.d json/tst.usdt.o
  90   84          $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
  91   85  
↓ open down ↓ 80 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX