home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / examples.lha / examples / sds / speed / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-18  |  651 b   |  47 lines

  1. # @(#)Makefile  07/19/90
  2. #
  3. #
  4. # Note: change these paths to conform to your system:
  5.  
  6.  
  7. MACHINE = SUN
  8.  
  9. INCDIR = /stg1/dilg/r5
  10. LIBS    = /stg1/dilg/testr5/lib/libdf.a -lm
  11. FILESDIR = ../files
  12.  
  13. RM      = rm -f
  14. CC      = cc
  15. FC      = f77
  16. DEFS    = -D${MACHINE}
  17.  
  18. CFLAGS  = -g ${DEFS} -I${INCDIR}
  19. FFLAGS  = -g
  20. LDFLAGS =
  21.  
  22. CPROGS  = speedtest
  23. FPROGS  = speedtestF
  24.  
  25. all:    cprogs fprogs
  26.  
  27. cprogs: ${CPROGS}
  28.  
  29. fprogs: ${FPROGS}
  30.  
  31. $(CPROGS):
  32.     ${CC} ${CFLAGS} $@.c ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  33.  
  34. $(FPROGS):
  35.     ${FC} ${FFLAGS} $@.f ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  36.  
  37. clean:
  38.     -${RM} *.o
  39.  
  40. cleanup:
  41.     -${RM} $(CPROGS)
  42.     -${RM} $(FPROGS)
  43.     -${RM} f? o?
  44.  
  45.  
  46.  
  47.