home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / bench / Dhrystone / source / DhrystoneSRC.lha / dhry / Makefile < prev    next >
Makefile  |  1990-03-18  |  1KB  |  52 lines

  1. CFLAGS = 
  2. TIME = time
  3.  
  4. all: rundhrystone rundhrystoneR rundhrystoneO rundhrystoneRO
  5.  
  6. dhrystone: dhrystone.c
  7.     $(CC) dhrystone.c -o dhrystone
  8.  
  9. rundhrystone: dhrystone
  10.     @echo 'Running dhrystone (Level 1 optimization, without registers)'
  11.     ./dhrystone
  12.     ./dhrystone
  13.     ./dhrystone
  14.     @echo
  15.  
  16.  
  17. dhrystoneR: dhrystone.c
  18.     $(CC) -DREG=register dhrystone.c -o dhrystoneR
  19.  
  20. rundhrystoneR: dhrystoneR
  21.     @echo 'Running dhrystone (Level 1 optimization, with registers)'
  22.     ./dhrystoneR
  23.     ./dhrystoneR
  24.     ./dhrystoneR
  25.     @echo
  26.  
  27.  
  28. dhrystoneO: dhrystone.c
  29.     $(CC) -O dhrystone.c -o dhrystoneO
  30.  
  31. rundhrystoneO: dhrystoneO
  32.     @echo 'Running dhrystone (Level 2 optimization, without registers)'
  33.     ./dhrystoneO
  34.     ./dhrystoneO
  35.     ./dhrystoneO
  36.     @echo
  37.  
  38.  
  39. dhrystoneRO: dhrystone.c
  40.     $(CC) -O -DREG=register dhrystone.c -o dhrystoneRO
  41.  
  42. rundhrystoneRO: dhrystoneRO
  43.     @echo 'Running dhrystone (Level 2 optimization, with registers)'
  44.     ./dhrystoneRO
  45.     ./dhrystoneRO
  46.     ./dhrystoneRO
  47.     @echo
  48.  
  49.  
  50. clean:
  51.     (set nonomatch;rm -f dhrystone dhrystoneR dhrystoneO dhrystoneRO *.o)
  52.