home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / lyapunov / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1991-09-27  |  1.4 KB  |  52 lines

  1. #
  2. # Makefile for lyapunov
  3. #
  4. # Copyright 1991, Garrett A. Wollman.  This program may be
  5. # modified and distributed for any purpose and without fee,
  6. # provided that this notice is included verbatim on all such
  7. # copies.  Binary distributions without this source file are
  8. # prohibited.  All modified versions must be labeled prominently
  9. # with the name of the modifier and the date of modification.
  10. #
  11.  
  12. PROGRAM    =    lyapunov
  13. CFILES    =    lyapunov.c
  14.  
  15. #
  16. # for SGI, use cc -O3 -mp
  17. # for most others, probably use gcc -O2
  18. CC    =    cc
  19. CDEBUGFLAGS=    -O3
  20. CFLAGS    =    -mp $(CDEBUGFLAGS)
  21.  
  22. # for Sun-4/4.1 with gcc
  23. #CC    =    gcc
  24. #CDEBUGFLAGS=    -O -fstrength-reduce -finline-functions -fcombine-regs
  25. #CFLAGS    =    $(CDEBUGFLAGS) -Wall -DSUN_BROKEN_STDLIB
  26.  
  27. LFLAGS    =    -lm
  28.  
  29. # change these as appropriate when doing a 'make benchmark'
  30. PROCESSORS=
  31. BENCHOUT=    /dev/null
  32. SENDMAIL=    /usr/lib/sendmail -oi -t
  33. MACHINE    =    SGI 4D/480S
  34.  
  35. $(PROGRAM):    $(CFILES)
  36.     $(CC) $(CFLAGS) -o $(PROGRAM) $(CFILES) $(LFLAGS)
  37.  
  38. benchmark:    $(PROGRAM)
  39.     time $(PROGRAM) -r 1280 -c 1024 $(PROCESSORS) -o $(BENCHOUT) \
  40.          -5 3 4 3 4 bbbbbbaaaaaa 2>bench.timing
  41.     @echo "To: wollman@emily.uvm.edu, `logname`" >bench.hdr
  42.     @echo "Subject: lyapunov benchmark results" >>bench.hdr
  43.     @echo "" >>bench.hdr
  44.     @echo "On" $(PROCESSORS) "of `hostname` (a" $(MACHINE) "):" >>bench.hdr
  45.     cat bench.hdr bench.timing | $(SENDMAIL)
  46.     rm -f bench.hdr bench.timing
  47.  
  48. clean:
  49.     rm -f $(PROGRAM) bench.hdr bench.timing core *~ #*# *.BAK
  50.     rm -f *.CKP
  51.