home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / common / Makefile < prev    next >
Makefile  |  2001-12-12  |  2KB  |  90 lines

  1. include ../../Makedefs
  2.  
  3.  
  4. OBJS =    long.o getopt.o time.o filepart.o identify.o strtbl.o rtdb.o\
  5.     munix.o literals.o rswitch.o alloc.o long.o getopt.o time.o\
  6.     save.o redirerr.o xwindow.o dlrgint.o ipp.o
  7.  
  8. common:        doincl patchstr $(OBJS) xpmaybe
  9.  
  10. doincl:        doincl.c ../h/arch.h
  11.         $(CC) $(CFLAGS) -o doincl doincl.c
  12.         -./doincl -o ../../bin/rt.h ../h/rt.h
  13.  
  14. patchstr:    patchstr.c
  15.         $(CC) $(CFLAGS) -o patchstr patchstr.c
  16.         cp patchstr ../../bin
  17.  
  18. xpmaybe:
  19.         -if [ "x$(XL)" != "x" ]; then $(MAKE) xpm; fi
  20.  
  21. xpm:
  22.         cd ../xpm; $(MAKE) libXpm.a
  23.         cp ../xpm/libXpm.a ../../bin
  24.  
  25. $(OBJS): ../h/define.h ../h/arch.h ../h/config.h ../h/cstructs.h ../h/mproto.h \
  26.       ../h/typedefs.h ../h/proto.h ../h/cpuconf.h
  27.  
  28. ../h/arch.h:    infer.c
  29.         $(CC) $(CFLAGS) -o infer infer.c
  30.         ./infer >../h/arch.h
  31.  
  32. identify.o: ../h/version.h
  33.  
  34. ipp.o: ../h/features.h
  35.  
  36. literals.o: ../h/esctab.h
  37.  
  38. rtdb.o: ../h/version.h icontype.h
  39.  
  40. dlrgint.o: ../h/rproto.h ../h/rexterns.h ../h/rmacros.h ../h/rstructs.h
  41.  
  42. xwindow.o: ../h/graphics.h ../h/xwin.h
  43.  
  44. #  for rswitch, $(CFLAGS) is deliberately omitted  (-O may cause problems)
  45. rswitch.o: FORCE
  46.     $(CC) -c rswitch.[cs]
  47. FORCE:
  48.  
  49.  
  50. #  The following section is needed if changes are made to the Icon grammar,
  51. #  but it is not run as part of the normal installation process.  If it is
  52. #  needed, it is run by changing ../icont/Makefile and/or ../iconc/Makefile;
  53. #  see the comments there for details.  icont must be in the search path
  54. #  for this section to work.
  55.  
  56. gfiles:            lextab.h yacctok.h fixgram pscript
  57.  
  58. lextab.h yacctok.h:    tokens.txt op.txt mktoktab
  59.             ./mktoktab
  60.  
  61. mktoktab:        mktoktab.icn
  62.             icont -s mktoktab.icn
  63.  
  64. fixgram:        fixgram.icn
  65.             icont -s fixgram.icn
  66.  
  67. pscript:        pscript.icn
  68.             icont -s pscript.icn
  69.  
  70.  
  71.  
  72. #  The following section is commented out because it does not need to be
  73. #  performed unless changes are made to typespec.txt. Such changes
  74. #  and are not part of the installation process.  However, if the
  75. #  distribution files are unloaded in a fashion such that their dates
  76. #  are not set properly, the following section would be attempted.
  77. #
  78. #  Note that if any changes are made to the file mentioned above, the
  79. #  comment characters at the beginning of the following lines should be
  80. #  removed.
  81. #
  82. #  Note that icont must be on your search path for this.
  83. #
  84. #
  85. #icontype.h: typespec.txt typespec
  86. #    typespec <typespec.txt >icontype.h
  87. #
  88. #typespec: typespec.icn
  89. #    icont typespec
  90.