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

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8.  
  9. VER = 25
  10. VERDOT = 2.5
  11. SRC       = h:\the-2.5
  12. CURSBIN   = c:\pdc\os2\icc
  13. CURSLIB   = $(CURSBIN)\pdcurses.lib
  14. CURSINC   = -Ic:\curses
  15. SETARGV   = #"c:\program files\devstudio\vc\lib\setargv.obj"
  16. REGINA_BIN = g:\regina-0.08e
  17. REGINA_REXXLIBS = $(REGINA_BIN)\regina.lib
  18. REGINA_REXXINC = -Ig:\regina-0.08e -DUSE_REGINA
  19. OS2REXX_REXXLIBS = rexx.lib
  20. OS2REXX_REXXINC = -DUSE_OS2REXX
  21.  
  22. #########################################################################
  23. # C Set/2 compiler on OS/2
  24. #########################################################################
  25.  
  26. !if "$(INT)" == "REGINA"
  27. REXXLIB = $(REGINA_REXXLIBS)
  28. REXXINC =  $(REGINA_REXXINC)
  29. !else
  30. !if "$(INT)" == "OS2REXX"
  31. REXXLIB = $(OS2REXX_REXXLIBS)
  32. REXXINC =  $(OS2REXX_REXXINC)
  33. !else
  34. !error Rexx Interpreter NOT specified via INT macro. Valid values are: REGINA OS2REXX
  35. !endif
  36. !endif
  37.  
  38. !ifdef DEBUG
  39. CFLAGS    = -c -O- -Ti -Sm -Q+ -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC)
  40. LDEBUG    = /CO
  41. TRACE     = trace.obj
  42. !else
  43. CFLAGS    = -c -O -J+ -Sm -Q+ -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC)
  44. LDEBUG    = /EXEPACK:2
  45. TRACE     =
  46. !endif
  47.  
  48. LDFLAGS   = /BAT /SE:160 /NOE /BASE:0x10000 /MAP /NOI /ALIGN:4 $(LDEBUG)
  49.  
  50. CC        = icc
  51. THERES    = $(SRC)\icc-the.res
  52. THEDEF    = $(SRC)\icc-the.def
  53. LD        = link386 $(LDFLAGS) @the.rsp
  54. MAN       = manext.exe
  55. MANLD     = link386 manext+getopt+g:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK:2 /PACKCODE /PACKDATA /ALIGN:4;
  56. RCTHE     = rc $(THERES) the.exe
  57. LXLITE    = h:\lxlite\lxlite the.exe
  58. #########################################################################
  59. #
  60. #
  61. # Object files
  62. #
  63. OBJ1A = box.obj colour.obj comm1.obj comm2.obj comm3.obj comm4.obj comm5.obj
  64. OBJ1B = commset1.obj commset2.obj commsos.obj cursor.obj default.obj
  65. OBJ1C = edit.obj error.obj execute.obj linked.obj column.obj mouse.obj
  66. OBJ1D = nonansi.obj prefix.obj reserved.obj scroll.obj show.obj sort.obj
  67. OBJ1E = memory.obj target.obj the.obj util.obj
  68. OBJ1 = $(OBJ1A) $(OBJ1B) $(OBJ1C) $(OBJ1D) $(OBJ1E)
  69. OBJ2 = commutil.obj $(TRACE)
  70. OBJ3 = getch.obj
  71. OBJ4 = query.obj
  72. OBJ5 = fnmatch.obj
  73. OBJ6 = directry.obj file.obj
  74. OBJ7 = rexx.obj
  75. OBJ8 = getopt.obj os2eas.obj
  76. OBJOTH = $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  77. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  78.  
  79. COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
  80.     $(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
  81.  
  82. APPENDIX = $(SRC)/appendix.1 $(SRC)/appendix.2 $(SRC)/appendix.3
  83. GLOSSARY = $(SRC)/glossary
  84.  
  85. all: the.exe dist
  86. #
  87. #########################################################################
  88. the.exe:    $(OBJS)
  89.     @echo $(OBJ1A) + > the.rsp
  90.     @echo $(OBJ1B) + >> the.rsp
  91.     @echo $(OBJ1C) + >> the.rsp
  92.     @echo $(OBJ1D) + >> the.rsp
  93.     @echo $(OBJ1E) + >> the.rsp
  94.     @echo $(OBJOTH) >> the.rsp
  95.     @echo the.exe >> the.rsp
  96.     @echo the.map >> the.rsp
  97.     @echo $(REXXLIB)+$(CURSLIB) >> the.rsp
  98.     @echo $(THEDEF) >> the.rsp
  99.     $(LD)
  100.     $(RCTHE)
  101.     $(LXLITE)
  102.     del the.rsp
  103. #########################################################################
  104. box.obj:    $(SRC)\box.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  105.     $(CC) $(CFLAGS) $(SRC)\$*.c
  106. colour.obj:    $(SRC)\colour.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  107.     $(CC) $(CFLAGS) $(SRC)\$*.c
  108. comm1.obj:    $(SRC)\comm1.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  109.     $(CC) $(CFLAGS) $(SRC)\$*.c
  110. comm2.obj:    $(SRC)\comm2.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  111.     $(CC) $(CFLAGS) $(SRC)\$*.c
  112. comm3.obj:    $(SRC)\comm3.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  113.     $(CC) $(CFLAGS) $(SRC)\$*.c
  114. comm4.obj:    $(SRC)\comm4.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  115.     $(CC) $(CFLAGS) $(SRC)\$*.c
  116. comm5.obj:    $(SRC)\comm5.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  117.     $(CC) $(CFLAGS) $(SRC)\$*.c
  118. commset1.obj:    $(SRC)\commset1.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  119.     $(CC) $(CFLAGS) $(SRC)\$*.c
  120. commset2.obj:    $(SRC)\commset2.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  121.     $(CC) $(CFLAGS) $(SRC)\$*.c
  122. commsos.obj:    $(SRC)\commsos.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  123.     $(CC) $(CFLAGS) $(SRC)\$*.c
  124. cursor.obj:    $(SRC)\cursor.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  125.     $(CC) $(CFLAGS) $(SRC)\$*.c
  126. default.obj:    $(SRC)\default.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  127.     $(CC) $(CFLAGS) $(SRC)\$*.c
  128. edit.obj:    $(SRC)\edit.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  129.     $(CC) $(CFLAGS) $(SRC)\$*.c
  130. error.obj:    $(SRC)\error.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  131.     $(CC) $(CFLAGS) $(SRC)\$*.c
  132. execute.obj:    $(SRC)\execute.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  133.     $(CC) $(CFLAGS) $(SRC)\$*.c
  134. linked.obj:    $(SRC)\linked.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  135.     $(CC) $(CFLAGS) $(SRC)\$*.c
  136. column.obj:    $(SRC)\column.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  137.     $(CC) $(CFLAGS) $(SRC)\$*.c
  138. mouse.obj:    $(SRC)\mouse.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  139.     $(CC) $(CFLAGS) $(SRC)\$*.c
  140. memory.obj:    $(SRC)\memory.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  141.     $(CC) $(CFLAGS) $(SRC)\$*.c
  142. nonansi.obj:    $(SRC)\nonansi.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  143.     $(CC) $(CFLAGS) $(SRC)\$*.c
  144. prefix.obj:    $(SRC)\prefix.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  145.     $(CC) $(CFLAGS) $(SRC)\$*.c
  146. reserved.obj:    $(SRC)\reserved.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  147.     $(CC) $(CFLAGS) $(SRC)\$*.c
  148. scroll.obj:    $(SRC)\scroll.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  149.     $(CC) $(CFLAGS) $(SRC)\$*.c
  150. show.obj:    $(SRC)\show.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  151.     $(CC) $(CFLAGS) $(SRC)\$*.c
  152. sort.obj:    $(SRC)\sort.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  153.     $(CC) $(CFLAGS) $(SRC)\$*.c
  154. target.obj:    $(SRC)\target.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  155.     $(CC) $(CFLAGS) $(SRC)\$*.c
  156. the.obj:    $(SRC)\the.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  157.     $(CC) $(CFLAGS) $(SRC)\$*.c
  158. util.obj:    $(SRC)\util.c $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  159.     $(CC) $(CFLAGS) $(SRC)\$*.c
  160. commutil.obj:    $(SRC)\commutil.c $(SRC)\the.h $(SRC)\command.h $(SRC)\defines.h $(SRC)\proto.h $(SRC)\getch.h $(SRC)\key.h
  161.     $(CC) $(CFLAGS) $(SRC)\$*.c
  162. trace.obj:    $(SRC)\trace.c $(SRC)\the.h $(SRC)\command.h $(SRC)\defines.h $(SRC)\proto.h $(SRC)\getch.h $(SRC)\key.h
  163.     $(CC) $(CFLAGS) $(SRC)\$*.c
  164. getch.obj:    $(SRC)\getch.c $(SRC)\getch.h $(SRC)\defines.h $(SRC)\proto.h
  165.     $(CC) $(CFLAGS) $(SRC)\$*.c
  166. query.obj:    $(SRC)\query.c $(SRC)\query.h $(SRC)\the.h $(SRC)\defines.h $(SRC)\proto.h
  167.     $(CC) $(CFLAGS) $(SRC)\$*.c
  168. fnmatch.obj:    $(SRC)\fnmatch.c $(SRC)\the.h $(SRC)\fnmatch.h
  169.     $(CC) $(CFLAGS) $(SRC)\$*.c
  170. directry.obj:    $(SRC)\directry.c $(SRC)\the.h $(SRC)\directry.h $(SRC)\defines.h $(SRC)\proto.h
  171.     $(CC) $(CFLAGS) $(SRC)\$*.c
  172. file.obj:    $(SRC)\file.c $(SRC)\the.h $(SRC)\directry.h $(SRC)\defines.h $(SRC)\proto.h
  173.     $(CC) $(CFLAGS) $(SRC)\$*.c
  174. rexx.obj:    $(SRC)\rexx.c $(SRC)\the.h $(SRC)\therexx.h $(SRC)\proto.h $(SRC)\defines.h $(SRC)\query.h
  175.     $(CC) $(CFLAGS) $(SRC)\$*.c
  176. getopt.obj:    $(SRC)\getopt.c
  177.     $(CC) $(CFLAGS) $(SRC)\$*.c
  178. os2eas.obj:    $(SRC)\os2eas.c
  179.     $(CC) $(CFLAGS) $(SRC)\$*.c
  180. ########################################################################
  181. manual:    $(MAN) $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY)
  182.     manext $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
  183. #
  184. $(MAN):    $(XTRAOBJ) manext.obj
  185.     $(MANLD)
  186.     $(CHMODMAN)
  187.  
  188. #########################################################################
  189. dist: the.exe
  190.     -mkdir tmp
  191.     cd tmp
  192.     -del /Y *.*
  193.     copy ..\the.exe
  194.     copy $(SRC)\THE_Help.txt .
  195.     copy $(SRC)\demo.txt .
  196.     copy $(SRC)\*.the .
  197.     copy $(SRC)\COPYING .
  198.     copy $(SRC)\HISTORY .
  199.     copy $(SRC)\TODO .
  200.     copy $(SRC)\README .
  201.     copy $(SRC)\README.OS2 .
  202.     copy $(SRC)\the.eas .
  203.     copy $(SRC)\os2.diz file_id.diz
  204.     f:\usr\bin\the -b -p $(SRC)\fix.diz -a "$(VER) $(VERDOT) O built-in Rexx interpreter" file_id.diz
  205.     zip the$(VER)O_os2 *
  206.     cd ..
  207. #########################################################################
  208.