home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / the25.zip / thesrc251.zip / vcwin32.mak < prev    next >
Makefile  |  1998-07-26  |  12KB  |  321 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8.  
  9. VER = 25
  10. VERDOT = 2.5
  11.  
  12. !if "$(COMPUTERNAME)" == "SNARK"
  13. SRC       = c:\the
  14. CURSBIN   = c:\pdc\vc
  15. CURSLIB   = $(CURSBIN)\curses.lib # pdcurses.lib for static linking
  16. CURSINC   = -Ic:\curses
  17. SETARGV   = "c:\program files\devstudio\vc\lib\setargv.obj"
  18. REGINA_BIN = e:\regina-0.08f\vc
  19. REGINA_REXXLIBS = $(REGINA_BIN)\regina.lib
  20. REGINA_REXXINC = -Ie:\regina-0.08f -DUSE_REGINA
  21. OREXX_REXXLIBS = c:\objrexx\api\rexx.lib c:\objrexx\api\rexxapi.lib
  22. OREXX_REXXINC = -Ic:\objrexx\api -DUSE_OREXX
  23. WINREXX_REXXLIBS = e:\winrexx\api\rxrexx.lib
  24. WINREXX_REXXINC = -Ie:\winrexx\api -DUSE_WINREXX
  25. QUERCUS_REXXLIBS = e:\quercus\api\wrexx32.lib
  26. QUERCUS_REXXINC = -Ie:\quercus\api -DUSE_QUERCUS
  27. UNIREXX_REXXLIBS = e:\unirexx\rxx.lib
  28. UNIREXX_REXXINC = -Ie:\unirexx -DUSE_UNIREXX
  29. REXXTRANS_REXXLIBS = c:\rexxtrans-1.0\vc\rexxtrans.lib
  30. REXXTRANS_REXXINC = -Ie:\regina-0.08f -DUSE_REGINA
  31. !else
  32. SRC       = e:\mhes\the
  33. CURSLIB   = e:\mhes\pdc\vc\curses.lib # pdcurses.lib for static linking
  34. CURSINC   = -Ie:\mhes\curses
  35. SETARGV   = "d:\program files\devstudio\vc\lib\setargv.obj"
  36. REGINA_REXXLIBS = e:\mhes\regina-0.08d\vc\regina.lib
  37. REGINA_REXXINC = -Ie:\mhes\regina-0.08d -DUSE_REGINA
  38. OREXX_REXXLIBS = e:\mhes\objrexx\api\rexx.lib e:\mhes\objrexx\api\rexxapi.lib
  39. OREXX_REXXINC = -Ie:\mhes\objrexx\api -DUSE_OREXX
  40. WINREXX_REXXLIBS = e:\mhes\winrexx\api\rxrexx.lib
  41. WINREXX_REXXINC = -Ie:\mhes\winrexx\api -DUSE_WINREXX
  42. QUERCUS_REXXLIBS = e:\mhes\quercus\api\wrexx32.lib
  43. QUERCUS_REXXINC = -Ie:\mhes\quercus\api -DUSE_QUERCUS
  44. UNIREXX_REXXLIBS = c:\unirexx\rxx.lib
  45. UNIREXX_REXXINC = -Ic:\unirexx -DUSE_UNIREXX
  46. !endif
  47. #########################################################################
  48. # MS VC++ compiler on Win32
  49. #########################################################################
  50. PROJ      = the.exe
  51. OBJ       = obj
  52. CC        = cl
  53.  
  54. !if "$(INT)" == "REGINA"
  55. REXXLIB = $(REGINA_REXXLIBS)
  56. REXXINC =  $(REGINA_REXXINC)
  57. !elseif "$(INT)" == "OREXX"
  58. REXXLIB = $(OREXX_REXXLIBS)
  59. REXXINC =  $(OREXX_REXXINC)
  60. !elseif "$(INT)" == "WINREXX"
  61. REXXLIB = $(WINREXX_REXXLIBS)
  62. REXXINC =  $(WINREXX_REXXINC)
  63. !elseif "$(INT)" == "QUERCUS"
  64. REXXLIB = $(QUERCUS_REXXLIBS)
  65. REXXINC =  $(QUERCUS_REXXINC)
  66. !elseif "$(INT)" == "UNIREXX"
  67. REXXLIB = $(UNIREXX_REXXLIBS)
  68. REXXINC =  $(UNIREXX_REXXINC)
  69. !elseif "$(INT)" == "REXXTRANS"
  70. REXXLIB = $(REXXTRANS_REXXLIBS)
  71. REXXINC =  $(REXXTRANS_REXXINC)
  72. !else
  73. !message Rexx Interpreter NOT specified via INT macro
  74. !message Valid values are: REGINA OREXX WINREXX QUERCUS UNIREXX
  75. !error Make aborted!
  76. !endif
  77.  
  78. !ifdef DEBUG
  79. CFLAGS    = -c -Od -Zi -FR -DWIN32 -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -Fo$@
  80. LDEBUG     = -debug
  81. !else
  82. CFLAGS    = -c -O2gityb1 -DWIN32 -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -Fo$@
  83. LDEBUG     = -release
  84. !endif
  85.  
  86. LD        = link
  87. XTRAOBJ   = getopt.obj
  88. MAN       = manext.exe
  89. MANLD     = link386 manext+getopt+wildargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  90. THERC     = $(SRC)\thew32.rc
  91. THERES    = thew32.res
  92. THEW32OBJ = thew32.obj
  93. docdir = doc
  94. #########################################################################
  95. #
  96. #
  97. # Object files
  98. #
  99. OBJ1 = box.$(OBJ) colour.$(OBJ) comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
  100.     commset1.$(OBJ) commset2.$(OBJ) commsos.$(OBJ) cursor.$(OBJ) default.$(OBJ) \
  101.     edit.$(OBJ) error.$(OBJ) execute.$(OBJ) linked.$(OBJ) column.obj mouse.obj memory.obj \
  102.     nonansi.$(OBJ) prefix.$(OBJ) reserved.$(OBJ) scroll.$(OBJ) show.$(OBJ) sort.$(OBJ) \
  103.     target.$(OBJ) the.$(OBJ) util.$(OBJ)
  104. OBJ2 = commutil.$(OBJ) #trace.obj
  105. OBJ3 = getch.$(OBJ)
  106. OBJ4 = query.$(OBJ)
  107. OBJ5 = fnmatch.$(OBJ)
  108. OBJ6 = directry.$(OBJ) file.$(OBJ)
  109. OBJ7 = rexx.$(OBJ)
  110. OBJ8 = 
  111. OBJX = $(XTRAOBJ)
  112. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)
  113. #########################################################################
  114.  
  115. COMM = $(SRC)\comm1.c $(SRC)\comm2.c $(SRC)\comm3.c $(SRC)\comm4.c $(SRC)\comm5.c \
  116.     $(SRC)\commsos.c $(SRC)\commset1.c $(SRC)\commset2.c $(SRC)\query.c
  117.  
  118. APPENDIX = $(SRC)\appendix.1
  119. GLOSSARY = $(SRC)\glossary
  120.  
  121. all: the.exe dist$(INT)
  122. #
  123. #########################################################################
  124. the.exe:    $(OBJS) $(THERES) $(THEW32OBJ)
  125.     $(LD) $(LDEBUG) $(LDFLAGS) $(OBJS) $(THEOBJ) $(THEW32OBJ) $(SETARGV) -out:the.exe $(CURSLIB) $(REXXLIB) user32.lib
  126. #########################################################################
  127. box.obj:    $(SRC)\box.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  128.     $(CC) $(CFLAGS) $(SRC)\$*.c
  129. colour.obj:    $(SRC)\colour.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  130.     $(CC) $(CFLAGS) $(SRC)\$*.c
  131. comm1.obj:    $(SRC)\comm1.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  132.     $(CC) $(CFLAGS) $(SRC)\$*.c
  133. comm2.obj:    $(SRC)\comm2.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  134.     $(CC) $(CFLAGS) $(SRC)\$*.c
  135. comm3.obj:    $(SRC)\comm3.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  136.     $(CC) $(CFLAGS) $(SRC)\$*.c
  137. comm4.obj:    $(SRC)\comm4.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  138.     $(CC) $(CFLAGS) $(SRC)\$*.c
  139. comm5.obj:    $(SRC)\comm5.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  140.     $(CC) $(CFLAGS) $(SRC)\$*.c
  141. commset1.obj:    $(SRC)\commset1.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  142.     $(CC) $(CFLAGS) $(SRC)\$*.c
  143. commset2.obj:    $(SRC)\commset2.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  144.     $(CC) $(CFLAGS) $(SRC)\$*.c
  145. commsos.obj:    $(SRC)\commsos.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  146.     $(CC) $(CFLAGS) $(SRC)\$*.c
  147. cursor.obj:    $(SRC)\cursor.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  148.     $(CC) $(CFLAGS) $(SRC)\$*.c
  149. default.obj:    $(SRC)\default.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  150.     $(CC) $(CFLAGS) $(SRC)\$*.c
  151. edit.obj:    $(SRC)\edit.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  152.     $(CC) $(CFLAGS) $(SRC)\$*.c
  153. error.obj:    $(SRC)\error.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  154.     $(CC) $(CFLAGS) $(SRC)\$*.c
  155. execute.obj:    $(SRC)\execute.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  156.     $(CC) $(CFLAGS) $(SRC)\$*.c
  157. linked.obj:    $(SRC)\linked.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  158.     $(CC) $(CFLAGS) $(SRC)\$*.c
  159. column.obj:    $(SRC)\column.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  160.     $(CC) $(CFLAGS) $(SRC)\$*.c
  161. mouse.obj:    $(SRC)\mouse.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  162.     $(CC) $(CFLAGS) $(SRC)\$*.c
  163. memory.obj:    $(SRC)\memory.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  164.     $(CC) $(CFLAGS) $(SRC)\$*.c
  165. nonansi.obj:    $(SRC)\nonansi.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  166.     $(CC) $(CFLAGS) $(SRC)\$*.c
  167. prefix.obj:    $(SRC)\prefix.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  168.     $(CC) $(CFLAGS) $(SRC)\$*.c
  169. reserved.obj:    $(SRC)\reserved.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  170.     $(CC) $(CFLAGS) $(SRC)\$*.c
  171. scroll.obj:    $(SRC)\scroll.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  172.     $(CC) $(CFLAGS) $(SRC)\$*.c
  173. show.obj:    $(SRC)\show.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  174.     $(CC) $(CFLAGS) $(SRC)\$*.c
  175. sort.obj:    $(SRC)\sort.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  176.     $(CC) $(CFLAGS) $(SRC)\$*.c
  177. target.obj:    $(SRC)\target.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  178.     $(CC) $(CFLAGS) $(SRC)\$*.c
  179. the.obj:    $(SRC)\the.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  180.     $(CC) $(CFLAGS) $(SRC)\$*.c
  181. util.obj:    $(SRC)\util.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  182.     $(CC) $(CFLAGS) $(SRC)\$*.c
  183. commutil.obj:    $(SRC)\commutil.c $(SRC)\the.h $(SRC)\command.h $(SRC)\defines.h $(SRC)\proto.h $(SRC)\getch.h $(SRC)\key.h
  184.     $(CC) $(CFLAGS) $(SRC)\$*.c
  185. trace.obj:    $(SRC)\trace.c $(SRC)\the.h $(SRC)\command.h $(SRC)\defines.h $(SRC)\proto.h $(SRC)\getch.h $(SRC)\key.h
  186.     $(CC) $(CFLAGS) $(SRC)\$*.c
  187. getch.obj:    $(SRC)\getch.c $(SRC)\getch.h $(SRC)\defines.h $(SRC)\proto.h
  188.     $(CC) $(CFLAGS) $(SRC)\$*.c
  189. query.obj:    $(SRC)\query.c $(SRC)\query.h $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  190.     $(CC) $(CFLAGS) $(SRC)\$*.c
  191. fnmatch.obj:    $(SRC)\fnmatch.c $(SRC)\the.h $(SRC)\fnmatch.h
  192.     $(CC) $(CFLAGS) $(SRC)\$*.c
  193. directry.obj:    $(SRC)\directry.c $(SRC)\the.h $(SRC)\directry.h $(SRC)\defines.h $(SRC)\proto.h
  194.     $(CC) $(CFLAGS) $(SRC)\$*.c
  195. file.obj:    $(SRC)\file.c $(SRC)\the.h $(SRC)\directry.h $(SRC)\defines.h $(SRC)\proto.h
  196.     $(CC) $(CFLAGS) $(SRC)\$*.c
  197. rexx.obj:    $(SRC)\rexx.c $(SRC)\the.h $(SRC)\therexx.h $(SRC)\proto.h $(SRC)\defines.h $(SRC)\query.h
  198.     $(CC) $(CFLAGS) $(SRC)\$*.c
  199. getopt.obj:    $(SRC)\getopt.c
  200.     $(CC) $(CFLAGS) $(SRC)\$*.c
  201.  
  202. $(THERES) $(THEW32OBJ): $(THERC)
  203.     copy $(SRC)\thewin.ico
  204.     rc /r /fo$(THERES) /i$(SRC) $(THERC)
  205.     cvtres /MACHINE:IX86 /NOLOGO /OUT:$(THEW32OBJ) $(THERES)
  206. #
  207. #########################################################################
  208. manual:    $(MAN) $(SRC)\overview $(COMM) $(APPENDIX) $(GLOSSARY)
  209.     manext $(SRC)\overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
  210. #
  211. $(MAN):    $(XTRAOBJ) manext.$(OBJ)
  212.     $(MANLD)
  213.     $(CHMODMAN)
  214.  
  215.  
  216. zip:
  217.     zip thesrc$(VER) README INSTALL TODO COPYING HISTORY THE_Help.txt
  218.     zip thesrc$(VER) overview appendix.1 appendix.2 appendix.3 glossary README.OS2
  219.     zip thesrc$(VER) box.c colour.c comm*.c cursor.c default.c directry.c
  220.     zip thesrc$(VER) edit.c error.c norexx.c scroll.c column.c execute.c
  221.     zip thesrc$(VER) file.c fnmatch.c getch.c getopt.c linked.c mouse.c memory.c
  222.     zip thesrc$(VER) nonansi.c os2eas.c prefix.c query.c reserved.c
  223.     zip thesrc$(VER) rexx.c show.c sort.c target.c the.c trace.c util.c
  224.     zip thesrc$(VER) command.h defines.h directry.h fnmatch.h getch.h
  225.     zip thesrc$(VER) key.h query.h proto.h rexxfill.h therexx.h the.h makefile.dist $(docdir)/*.gif
  226.     zip thesrc$(VER) manext.c *.rc *.rsp *.def *.diz files.rcs the*.xbm icons.zip the.res the.rc the.eas
  227.     zip thesrc$(VER) append.the comm.the uncomm.the total.the match.the rm.the
  228.     zip thesrc$(VER) words.the l.the compile.the spell.the demo.the demo.txt
  229.     zip thesrc$(VER) Makefile.in configure config.h.in $(docdir)/THE_Help*
  230.     zip thesrc$(VER) vcwin32.mak wccwin32.mak
  231.     zip thesrc$(VER) config.guess config.sub install-sh
  232.     zip thesrc$(VER) aclocal.m4 configure.in
  233.     zip thesrc$(VER) man2html.rex
  234. #
  235.  
  236. distREGINA:
  237.     -mkdir tmp
  238.     cd tmp
  239.     copy ..\the.exe .
  240.     copy $(SRC)\*.the .
  241.     copy $(SRC)\README .
  242.     copy $(SRC)\COPYING .
  243.     copy $(SRC)\HISTORY .
  244.     copy $(SRC)\TODO .
  245.     copy $(CURSBIN)\curses.dll .
  246.     copy $(REGINA_BIN)\regina.dll .
  247.     copy $(SRC)\THE_Help.txt .
  248.     copy $(SRC)\demo.txt .
  249.     copy $(SRC)\win32.diz file_id.diz
  250.     c:\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) R Regina" file_id.diz
  251.     zip the$(VER)R_w32 *
  252.     cd ..
  253.  
  254. distOREXX:
  255.     -mkdir tmp
  256.     cd tmp
  257.     copy ..\the.exe .
  258.     copy $(SRC)\*.the .
  259.     copy $(SRC)\README .
  260.     copy $(SRC)\COPYING .
  261.     copy $(SRC)\HISTORY .
  262.     copy $(SRC)\TODO .
  263.     copy $(CURSBIN)\curses.dll .
  264.     copy $(SRC)\THE_Help.txt .
  265.     copy $(SRC)\demo.txt .
  266.     copy $(SRC)\win32.diz file_id.diz
  267.     c:\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) O IBM Object Rexx" file_id.diz
  268.     zip the$(VER)O_w32 *
  269.     cd ..
  270.  
  271. distWINREXX:
  272.     -mkdir tmp
  273.     cd tmp
  274.     copy ..\the.exe .
  275.     copy $(SRC)\*.the .
  276.     copy $(SRC)\README .
  277.     copy $(SRC)\COPYING .
  278.     copy $(SRC)\HISTORY .
  279.     copy $(SRC)\TODO .
  280.     copy $(CURSBIN)\curses.dll .
  281.     copy $(SRC)\THE_Help.txt .
  282.     copy $(SRC)\demo.txt .
  283.     copy $(SRC)\win32.diz file_id.diz
  284.     c:\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) W Enterprise Rexx" file_id.diz
  285.     zip the$(VER)W_w32 *
  286.     cd ..
  287.  
  288. distQUERCUS:
  289.     -mkdir tmp
  290.     cd tmp
  291.     copy ..\the.exe .
  292.     copy $(SRC)\*.the .
  293.     copy $(SRC)\README .
  294.     copy $(SRC)\COPYING .
  295.     copy $(SRC)\HISTORY .
  296.     copy $(SRC)\TODO .
  297.     copy $(CURSBIN)\curses.dll .
  298.     copy $(SRC)\THE_Help.txt .
  299.     copy $(SRC)\demo.txt .
  300.     copy $(SRC)\win32.diz file_id.diz
  301.     c:\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) Q Personal Rexx" file_id.diz
  302.     zip the$(VER)Q_w32 *
  303.     cd ..
  304.  
  305. distUNIREXX:
  306.     -mkdir tmp
  307.     cd tmp
  308.     copy ..\the.exe .
  309.     copy $(SRC)\*.the .
  310.     copy $(SRC)\README .
  311.     copy $(SRC)\COPYING .
  312.     copy $(SRC)\HISTORY .
  313.     copy $(SRC)\TODO .
  314.     copy $(CURSBIN)\curses.dll .
  315.     copy $(SRC)\THE_Help.txt .
  316.     copy $(SRC)\demo.txt .
  317.     copy $(SRC)\win32.diz file_id.diz
  318.     c:\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) U Uni-REXX" file_id.diz
  319.     zip the$(VER)U_w32 *
  320.     cd ..
  321.