home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xodometer / part01 / Imakefile next >
Encoding:
Makefile  |  1993-04-28  |  2.0 KB  |  78 lines

  1. #
  2. # Imakefile for xodometer.
  3. #
  4. # Stephen O. Lidie, Lehigh University Computing Center, 93/02/11.
  5. #
  6. # lusol@Lehigh.EDU
  7. #
  8. # Prior to running xmkmf inspect/change the following variables:
  9. #
  10. #    BINDIR        binary directoy
  11. #    MANDIR        man page directory
  12. #    RANLIB        what is ranlib (sorry, not defined in AIX)
  13. #    PERLDIR        path name of Perl (it's OK if you don't have Perl!)
  14. #    CDEBUGFLAGS    cc compiler options
  15. #    MATHLIB        name of math library
  16. #    LOCAL_LIBRARIES    which libraries
  17. #
  18. # Then:  xmkmf; make; make install
  19. #
  20.  
  21. #
  22. # Where you want things installed.
  23. #
  24. BINDIR          = /usr/local/bin
  25. MANDIR          = /usr/local/man/man1
  26.  
  27. #
  28. # Whether or not you have/need ranlib.
  29. #
  30. RANLIB        = ranlib    # have or need ranlib
  31. #RANLIB         = /bin/true    # do not have or need ranlib
  32.  
  33. #
  34. # Where to get Perl.  It's OK if you don't have Perl, but expect an error
  35. # from the program genmp during a 'make install' - the error can be safely
  36. # ignored.  I use genmp (generate_man_page) so that the xodometer man page
  37. # is always up-to-date, but the one that you have received in this
  38. # distribution is by definition the latest and greatest.
  39. #
  40. PERLDIR         = /usr/local/bin
  41.  
  42. CDEBUGFLAGS     = -O
  43. MATHLIB         = -lm
  44. LOCAL_LIBRARIES = $(XLIB) $(MATHLIB)
  45.  
  46.  
  47. SRCS        = xodo.c evap/evap.c
  48. OBJS        = xodo.o evap/evap.o
  49.  
  50. all::    xodo_a xodo
  51.  
  52. clean::
  53.     rm xodo xodo.o xodomm.a evap/evap.o
  54.  
  55. evap/evap.o:    evap/evap.c evap/evap.h
  56.     (cd evap; $(CC) $(CDEBUGFLAGS) -DP_EVAP_MM_PATH=\"$(BINDIR)\" -c evap.c)
  57.  
  58. xodo_a:
  59.     ar rcv xodomm.a evap\/xodo.mm
  60.     $(RANLIB) xodomm.a
  61.     sed -e "s!/usr/local/bin!$(BINDIR)!g" evap/xodo_pdt.skl > evap/xodo_pdt.out
  62.  
  63. install::
  64.     $(INSTALL) -c $(INSTPGMFLAGS) xodo     $(BINDIR)
  65.     $(INSTALL) -c $(INSTPGMFLAGS) xodomm.a $(BINDIR)
  66.     sed -e "s!/usr/local/bin!$(PERLDIR)!" evap/genmp.skl > evap/genmp
  67.     chmod 755 evap/genmp
  68.     @echo " "
  69.     @echo "******* Any errors from genmp can be safely ignored!"
  70.     -evap/genmp $(BINDIR)/xodo 1> /dev/null 2> /dev/null
  71.     @echo "******* Any errors from genmp can be safely ignored!"
  72.     @echo " "
  73.     $(INSTALL) -c $(INSTMANFLAGS) xodo.man $(MANDIR)/xodo.1
  74.  
  75. ComplexProgramTarget(xodo)
  76.  
  77.  
  78.