home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume10 / contool / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1990-10-30  |  1.8 KB  |  82 lines

  1. # Where to put the executable
  2. BIN        = /usr/local/bin
  3.  
  4. # Where to put the man page
  5. MAN        = /usr/man/manl
  6. MANEXT        = l
  7.  
  8. # Where to install the help file
  9. HELPDIR        = /usr/local/lib/help
  10.  
  11. # paths to be searched for icons
  12. ICON_PATH    = .:./icons:/usr/local/images:/usr/include/images
  13.  
  14. # Where you installed Open Windows
  15. OPENWINHOME    = /usr/openwin
  16.  
  17. # Where your XView libraries are installed
  18. LDFLAGS        = -L$(OPENWINHOME)/lib
  19.  
  20. # Where your XView include files are installed
  21. CPPFLAGS    = -I$(OPENWINHOME)/include
  22.  
  23. CONTOOL        = contool.o contool_ui.o error.o expand.o filters.o load.o load_icon.o logging.o misc.o parse.o props.o regexp.o store.o window_misc.o
  24.  
  25. OPTIONS        = -O
  26.  
  27. LDLIBS        = -lxview -lolgx -lX
  28.  
  29. .c.o:
  30.     cc $(OPTIONS) $(CPPFLAGS) -c $<
  31.  
  32. .y.o:
  33.     yacc $<
  34.     cc $(OPTIONS) -c -o $*.o y.tab.c
  35.     rm y.tab.c
  36.  
  37. contool: $(CONTOOL)
  38.     cc $(OPTIONS) -o contool $(CONTOOL) $(LDFLAGS) $(LDLIBS)
  39.  
  40. install: contool $(MAN)/contool.$(MANEXT)
  41.     cp contool $(BIN)
  42.     chmod 755 $(BIN)/contool
  43.     cp contool.info $(HELPDIR)
  44.  
  45. $(MAN)/contool.$(MANEXT): contool.man
  46.     cp -p contool.man $(MAN)/contool.$(MANEXT)
  47.  
  48. clean:
  49.     rm -f *~ $(OFILES) contool core
  50.  
  51. #dependencies
  52.  
  53. contool.o: manifest.h contool.h contool_ui.h icons/default_good.icon \
  54.      icons/default_bad.icon icons/default_flash.icon icons/mask.icon
  55.  
  56. contool_ui.o: contool_ui.h
  57.  
  58. error.o: manifest.h contool_ui.h
  59.  
  60. expand.o: manifest.h
  61.  
  62. filters.o: manifest.h contool.h contool_ui.h images/single.icon \
  63.      images/range.icon images/empty.icon
  64.  
  65. load.o: manifest.h contool.h contool_ui.h
  66.  
  67. load_icon.o: manifest.h contool.h
  68.  
  69. logging.o: manifest.h contool.h contool_ui.h
  70.  
  71. misc.o: manifest.h contool.h
  72.  
  73. parse.y: manifest.h contool.h lex.c
  74.  
  75. props.o: manifest.h contool.h contool_ui.h
  76.  
  77. regexp.o: manifest.h contool.h
  78.  
  79. store.o: manifest.h contool.h contool_ui.h
  80.  
  81. window_misc.o: manifest.h contool_ui.h
  82.