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 / config / winnt / msvc / makefile.cmn < prev    next >
Makefile  |  2000-10-03  |  3KB  |  112 lines

  1. OS=NT
  2. ENV=WIN32
  3. CPU=i386
  4. !include <$(OS)$(ENV).mak>
  5.  
  6. #  The -D$D option to CFLAGS makes it possible to specify a definition
  7. #  at the Make command level without revising the Makefile, as
  8. #  in
  9. #
  10. #       make D=Debug
  11. #
  12. D=NOTHING
  13. CC=cl
  14. # /O1 to minimize space, /Zi for debugging
  15. CFLAGS= /D_X86_ /DWIN32 /O1 /D$(D)
  16. LDFLAGS=
  17. MAKE = nmake
  18.  
  19. OBJS=   long.obj getopt.obj memory.obj time.obj filepart.obj identify.obj strtbl.obj rtdb.obj\
  20.     literals.obj rswitch.obj alloc.obj long.obj getopt.obj memory.obj time.obj\
  21.     save.obj redirerr.obj xwindow.obj dlrgint.obj ipp.obj
  22. #       rswitch.obj
  23.  
  24. common:         doincl.exe patchstr.exe
  25.         .\doincl -o ..\..\bin\rt.h ..\h\rt.h
  26.  
  27. # add dconsole.obj for wicont
  28. winobjs:
  29.         del *.obj
  30.             nmake $(OBJS) $(DCONSOLE) D=$(CONSOLE)
  31.  
  32. doincl.exe:     doincl.obj
  33.         link32 -subsystem:console doincl.obj libc.lib kernel32.lib ntdll.lib user32.lib gdi32.lib winspool.lib comdlg32.lib VERSION.LIB -out:doincl.exe
  34.  
  35. patchstr.exe:   patchstr.c
  36.         $(CC) $(CFLAGS) patchstr.c
  37.         link32 -subsystem:console patchstr.obj libc.lib kernel32.lib ntdll.lib user32.lib gdi32.lib winspool.lib comdlg32.lib VERSION.LIB -out:patchstr.exe
  38.         copy patchstr.exe ..\..\bin
  39.  
  40. patchstr.obj:  patchstr.c
  41.         $(CC) -c $(CFLAGS) /DNOMAIN patchstr.c
  42.  
  43. xpm:
  44.         cd ../xpm; $(MAKE) libXpm.a
  45.         cp ../xpm/libXpm.a ../../bin
  46.         -(test -f ../../NoRanlib) || (ranlib ../../bin/libXpm.a)
  47.  
  48. $(OBJS): ../h/define.h ../h/config.h ../h/cstructs.h ../h/mproto.h  ../h/path.h\
  49.       ../h/typedefs.h ../h/proto.h ../h/cpuconf.h
  50.  
  51. identify.obj: ../h/version.h
  52.  
  53. ipp.obj: ../h/features.h
  54.  
  55. literals.obj: ../h/esctab.h
  56.  
  57. rtdb.obj: ../h/version.h icontype.h
  58.  
  59. dlrgint.obj: ../h/rproto.h ../h/rexterns.h ../h/rmacros.h ../h/rstructs.h
  60.  
  61. xwindow.obj: ../h/graphics.h ../h/xwin.h ../h/pmwin.h
  62.  
  63. #
  64. # use these lines for the old rswitch.asm assembly co-expression switch.
  65. #
  66. #rswitch.obj: rswitch.asm
  67. #        masm386 /Mx rswitch.asm,rswitch.obj,NUL,NUL
  68.  
  69. rswitch.obj: rswitch.c
  70.     $(CC) /D_X86_ /DWIN32 /c rswitch.c
  71.  
  72. #  The following section is needed if changes are made to the Icon grammar,
  73. #  but it is not run as part of the normal installation process.  If it is
  74. #  needed, it is run by changing ../icont/Makefile and/or ../iconc/Makefile;
  75. #  see the comments there for details.  icont must be in the search path
  76. #  for this section to work.
  77.  
  78. gfiles:                 lextab.h yacctok.h fixgram pscript
  79.  
  80. lextab.h yacctok.h:     tokens.txt op.txt mktoktab
  81.             ./mktoktab 
  82.  
  83. mktoktab:               mktoktab.icn
  84.             icont -s mktoktab.icn
  85.  
  86. fixgram:                fixgram.icn
  87.             icont -s fixgram.icn
  88.  
  89. pscript:                pscript.icn
  90.             icont -s pscript.icn
  91.  
  92.  
  93.  
  94. #  The following section is commented out because it does not need to be
  95. #  performed unless changes are made to typespec.txt. Such changes 
  96. #  and are not part of the installation process.  However, if the
  97. #  distribution files are unloaded in a fashion such that their dates
  98. #  are not set properly, the following section would be attempted.
  99. #
  100. #  Note that if any changes are made to the file mentioned above, the
  101. #  comment characters at the beginning of the following lines should be
  102. #  removed.
  103. #
  104. #  Note that icont must be on your search path for this.
  105. #
  106. #
  107. #icontype.h: typespec.txt typespec
  108. #       typespec <typespec.txt >icontype.h
  109. #
  110. #typespec: typespec.icn
  111. #       icont typespec
  112.