"Fossies" - the Fresh Open Source Software Archive

Member "heaplayers-351/benchmarks/lindsay/Makefile.tracing-version" (3 May 2004, 4739 Bytes) of package /linux/misc/old/heaplayers_3_5_1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # /usr/lindsay/cube/sim/makefile
    2 
    3 #//		Copyright 1988 D.C. Lindsay at Carnegie Mellon University
    4 
    5 # setenv MICC 1 makes CC use MICC (except for nm -p??)
    6 #CC=MICC
    7 #CC=g++
    8 #CC = g++-2.3.3-930316 -V 2.3.3-930316 -O0 -g
    9 CC = g++
   10 
   11 #(mark)LDFLAGS=-L/udir/detlefs/lib -p
   12 LIBFLAGS=-lm 
   13 #(mark)LIBFLAGS=-lExcept -lRef -lm
   14 # define KSEARCH to get k, not k(k-1)
   15 # the following gives trace info from the scheduler.
   16 #CCFLAGS = -c -DDOMESG -DDOSCHED
   17 
   18 #CCFLAGS = -c -g -DDOMESG
   19 #CCFLAGS = -c -O -DDOMESG
   20 #CCFLAGS = -c -g -DDOMESG -DDOSCHED
   21 #CCFLAGS = -c -g -I.:/udir/detlefs/include:/udir/detlefs/c++/gc/Ref -DDOMESG -DREFGC -DDEBUG=1
   22 #CCFLAGS = -c -O -I.:/udir/detlefs/include:/udir/detlefs/c++/gc/Ref -DDOMESG -DREFGC
   23 #(mark)CCFLAGS = -c -O -I.:/udir/detlefs/include:/udir/detlefs/c++/gc/Ref -DDOMESG -DREFGC -DULTRASAFE
   24 CCFLAGS = -c -ggdb -O2 -DINLINES -DNDEBUG -DDOMESG
   25 
   26 # the following leaves "gmon.out" at run time: run "gprof".
   27 #CCFLAGS = -c -pg -DDOMESG
   28 #LDFLAGS = -pg -t
   29 #LDFLAGS = -r1
   30 #LIBFLAGS = -lc_p
   31 # the following leaves a .d for each .cxx file. Use "tcov".
   32 #CCFLAGS = -c -a -DDOMESG
   33 
   34 INCLUDES = machine.h sched.h node.h statistics.h measure.h xrand.h histogram.h chart.h choose.h
   35 #SOURCES = sim.cxx sched.cxx statistics.cxx measure.cxx xrand.cxx histogram.cxx chart.cxx choose.cxx message.cxx xgen.cxx event_ctor.cxx
   36 SOURCES = sim.cc sched.cc statistics.cc measure.cc xrand.cc histogram.cc chart.cc choose.cc message.cc xgen.cc event_ctor.cc
   37 
   38 # the next doesn't include choose.o
   39 OBJECTS = sim.o sched.o statistics.o measure.o xrand.o histogram.o chart.o message.o xgen.o event_ctor.o
   40 OBJECTSK = simk.o sched.o statistics.o measure.o xrand.o histogram.o chart.o message.o xgen.o
   41 OBJECTS2 = sim2.o sched.o statistics.o measure.o xrand.o histogram.o chart.o message.o xgen.o
   42 OBJECTSHARD = sim.o sched.o statistics.o measure.o xrand.o histogram.o chart.o messagehard.o xgen.o
   43 OBJECTSSOFT = sim.o sched.o statistics.o measure.o xrand.o histogram.o chart.o messagesoft.o xgen.o
   44 
   45 #.SUFFIXES:	.cxx
   46 #.cxx.o:
   47 #	$(CC) $(CCFLAGS) $*.cxx
   48 .SUFFIXES:	.cc
   49 .cc.o:
   50 	$(CC) $(CCFLAGS) $*.cc
   51 
   52 sim:	$(OBJECTS) choose.o
   53 	$(CC) -static -o sim ../../malloc-tracer/gmalloc.o  $(LDFLAGS) $(OBJECTS) choose.o $(LIBFLAGS)
   54 
   55 choose.o: choose.cc $(INCLUDES)
   56 
   57 simk:	$(OBJECTSK) choose.o
   58 	$(CC) -o simk $(LDFLAGS) $(OBJECTSK) choose.o -lm $(LIBFLAGS)
   59 
   60 sim2:	$(OBJECTS2) choose.o
   61 	$(CC) -o sim2 $(LDFLAGS) $(OBJECTS2) choose.o -lm $(LIBFLAGS)
   62 sim2.o: sim2.cc $(INCLUDES)
   63 
   64 simhard:	$(OBJECTSHARD) choose.o
   65 	$(CC) -o simhard $(LDFLAGS) $(OBJECTSHARD) choose.o -lm $(LIBFLAGS)
   66 simsoft:	$(OBJECTSSOFT) choose.o
   67 	$(CC) -o simsoft $(LDFLAGS) $(OBJECTSSOFT) choose.o -lm $(LIBFLAGS)
   68 
   69 
   70 simlr:  $(OBJECTS) chooselr.o
   71 	$(CC) -o simlr $(LDFLAGS) $(OBJECTS) chooselr.o -lm $(LIBFLAGS)
   72 chooselr.o: chooselr.cc $(INCLUDES)
   73 
   74 simhigh:  $(OBJECTS) choosehigh.o
   75 	$(CC) -o simhigh $(LDFLAGS) $(OBJECTS) choosehigh.o -lm $(LIBFLAGS)
   76 choosehigh.o: choosehigh.cc $(INCLUDES)
   77 
   78 simdiff:  $(OBJECTS) choosediff.o
   79 	$(CC) -o simdiff $(LDFLAGS) $(OBJECTS) choosediff.o -lm $(LIBFLAGS)
   80 choosediff.o: choosediff.cc $(INCLUDES)
   81 
   82 simage:  $(OBJECTS) chooseage.o
   83 	$(CC) -o simage $(LDFLAGS) $(OBJECTS) chooseage.o -lm $(LIBFLAGS)
   84 chooseage.o: chooseage.cc $(INCLUDES)
   85 
   86 simset:  $(OBJECTS) chooseset.o
   87 	$(CC) -o simset $(LDFLAGS) $(OBJECTS) chooseset.o -lm $(LIBFLAGS)
   88 chooseset.o: chooseset.cc $(INCLUDES)
   89 
   90 xrand.o: xrand.cc xrand.h
   91 
   92 #	cc -c -O xrand.c
   93 
   94 xgen.o: xgen.cc node.h measure.h message.h
   95 
   96 event_ctor.o: event_ctor.cc sched.h
   97 	$(CC) $(CCFLAGS) -g $*.cc
   98 
   99 
  100 message.o: message.cc message.h
  101 messagehard.o: messagehard.cc $(INCLUDES)
  102 messagesoft.o: messagesoft.cc $(INCLUDES)
  103 sim.o:	sim.cc \
  104 	node.h sched.h statistics.h measure.h choose.h \
  105 	chart.h xrand.h message.h
  106 simk.o: sim.cc $(INCLUDES)
  107 	$(CC) $(CCFLAGS) -DKSEARCH sim.cc
  108 	mv sim.o simk.o
  109 #	$(CC) -o simk.o $(CCFLAGS) -DKSEARCH sim.cc
  110 sched.o: sched.cc sched.h
  111 measure.o: measure.cc node.h statistics.h histogram.h measure.h
  112 statistics.o: statistics.cc statistics.h
  113 histogram.o: histogram.cc $(INCLUDES)
  114 
  115 bak:
  116 	cp README READMEbak makefile script*  *.cc *.h xrand.o probe* run* backup
  117 print:
  118 	enscript README READMEbak makefile $(INCLUDES) $(SOURCES) runstd.right
  119 test: sim
  120 	sim < script.15 > out
  121 	diff out script15.right
  122 	sim < script.05 > out
  123 	diff out script05.right
  124 	sim < script.045 > out
  125 	diff out script045.right
  126 	sim < script.art > out
  127 	diff out scriptart.right
  128 	sim < script.artx > out
  129 	diff out scriptartx.right
  130 	sim < script.gen > out
  131 	diff out scriptgen.right
  132 	sim < script.05pull > out
  133 	diff out script05pull.right
  134 std: sim
  135 	runscript script.std > out
  136 	diff out runstd.right
  137 diff:
  138 	diff . backup
  139 clean:
  140 	rm -f *.o *.CKP *.BAK sim out core a.out
  141 kleen:
  142 	rm -f *.CKP *.BAK out core a.out
  143 q:
  144 	lpq -Pberyl
  145 j: j.o 
  146 	$(CC) -o j j.o -lm