home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1734 / Imakefile < prev    next >
Encoding:
Makefile  |  1990-12-28  |  2.0 KB  |  85 lines

  1. /**/#
  2. /**/#    Imakefile for xmon : Graphically monitor a list
  3. /**/#
  4. /**/#   George Ferguson, ferguson@cs.rochester.edu, 15 Jul 1990.
  5. /**/#
  6. /**/#    $Id: Imakefile,v 1.3 90/08/07 19:20:25 ferguson Exp $
  7. /**/#
  8.  
  9. /**/#
  10. /**/# Here's what to change to customize the installation...
  11. /**/#
  12. /**/# where do you want this stuff?
  13. /**/#
  14. BINDIR = /scratch/ferguson/xmon/Bin
  15. LIBDIR = /scratch/ferguson/xmon/Lib
  16. MANDIR = /scratch/ferguson/xmon/Man
  17.  
  18. /**/#
  19. /**/# where do the faces live?
  20. /**/#
  21. FACEDIR = $(LIBDIR)/images
  22.  
  23. /**/#
  24. /**/# where do the support programs go?
  25. /**/#
  26. XMONDIR = $(LIBDIR)/xmon
  27.  
  28. /**/#
  29. /**/# which support programs do you want?
  30. /**/#
  31. UTIL = name2icon xls-cmd
  32.  
  33. /**/#
  34. /**/# where is the app-defaults to C converter?
  35. /**/#
  36. AD2C = util/ad2c
  37.  
  38. /**/#
  39. /**/# Nothing to change below here (except maybe CDEBUGFLAGS).
  40. /**/#
  41. DEPLIBS =        XawClientDepLibs
  42. LOCAL_LIBRARIES =    XawClientLibs
  43. /**/#CDEBUGFLAGS =         -g
  44.  
  45. SRCS = xmon.c translate.c update.c
  46. OBJS = xmon.o translate.o update.o
  47. INCS = app-resources.h
  48.  
  49. ComplexProgramTarget(xmon)
  50. InstallAppDefaults(Xmon)
  51.  
  52. /**/# 
  53. /**/# Replace the four ln commands below with these five lines (uncommented)
  54. /**/# to install shell scripts for the derived tools rather than using
  55. /**/# symbolic links.
  56. /**/# 
  57. /**/# echo "$(BINDIR)/xmon -name xru" > $(BINDIR)/xru
  58. /**/# echo "$(BINDIR)/xmon -name xrf" > $(BINDIR)/xrf
  59. /**/# echo "$(BINDIR)/xmon -name xls" > $(BINDIR)/xls
  60. /**/# echo "$(BINDIR)/xmon -name xfrom" > $(BINDIR)/xfrom
  61. /**/# chmod a+x $(BINDIR)/xru $(BINDIR)/xrf $(BINDIR)/xls $(BINDIR)/xfrom
  62.  
  63. install::
  64.     ln -s $(BINDIR)/xmon $(BINDIR)/xru
  65.     ln -s $(BINDIR)/xmon $(BINDIR)/xrf
  66.     ln -s $(BINDIR)/xmon $(BINDIR)/xls
  67.     ln -s $(BINDIR)/xmon $(BINDIR)/xfrom
  68.     test -d $(FACEDIR) || mkdir $(FACEDIR)
  69.     chmod 1757 $(FACEDIR)
  70.     cd images; for icon in `ls *.xbm` ; \
  71.     do \
  72.         cp $$icon $(FACEDIR)/`(echo $$icon | sed s/.xbm//)` ; \
  73.     done
  74.     test -d $(XMONDIR) || mkdir $(XMONDIR)
  75.     cd util ; cp $(UTIL) $(XMONDIR)
  76.  
  77. /**/#
  78. /**/#    generate C code for fallback resources
  79. /**/#
  80. Xmon.ad.h: Xmon.ad
  81.     $(AD2C) Xmon.ad >Xmon.ad.h
  82.  
  83. clean::
  84.     $(RM) Xmon.ad.h
  85.