home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / examples.lha / examples / err / Makefile < prev   
Encoding:
Makefile  |  1991-10-25  |  647 b   |  46 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  = err
  23. FPROGS  = errF
  24. COBJS   = 
  25.  
  26. all:    cprogs fprogs 
  27.  
  28. cprogs: ${CPROGS}
  29.  
  30. fprogs: ${FPROGS}
  31.  
  32. $(CPROGS):
  33.     ${CC} ${CFLAGS} $@.c ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  34.  
  35. $(FPROGS):
  36.     ${FC} ${FFLAGS} $@.f ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  37.  
  38. clean:
  39.     -${RM} *.o
  40.  
  41. cleanup:
  42.     -${RM} $(CPROGS)
  43.     -${RM} $(FPROGS)
  44.     -${RM} *.o
  45.  
  46.