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

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8.  
  9. VER = 25
  10. PROJ = proj   # this will get replaced by uncommenting a section
  11. MAN  = man    # this will get replaced by uncommenting a section
  12.  
  13. #########################################################################
  14. # Watcom  compiler on OS/2
  15. #########################################################################
  16. !ifeq %COMPUTERNAME SNARK
  17. SRC       = c:\the\
  18. WATCOMSRC = c:\watcom\src\startup\
  19. CURSLIB   = c:\pdc\4s\pdcurses.lib
  20. CURSINC   = /i=c:\curses #/i=e:\mhes\watcom\h
  21. REXXINC   = /i=e:\regina-0.08f /DUSE_REGINA
  22. REXXLIB   = e:\regina-0.08f\4s\rexx.lib
  23. !else
  24. SRC       = e:\mhes\the\
  25. WATCOMSRC = e:\mhes\watcom\src\startup\
  26. CURSLIB   = e:\mhes\pdc\4s\pdcurses.lib
  27. CURSINC   = /i=e:\mhes\curses /i=e:\mhes\watcom\h
  28. REXXINC   = /i=e:\mhes\regina-0.08e /DUSE_REGINA
  29. REXXLIB   = e:\mhes\regina\vc\reginaw.lib
  30. !endif
  31.  
  32. PROJ      = the.exe
  33. OBJ       = obj
  34. CC        = wcc386
  35.  
  36.  
  37. !ifeq DEBUG CODEVIEW
  38. CFLAGS    = /zz /d3 /hc /od /4s /ei /zp4 /zq /mf /DSTDC_HEADERS /DPROTO /DWIN32 /i=$(SRC) $(CURSINC) $(REXXINC) /fo=$@
  39. LDEBUG     = debug codeview
  40. !else
  41. !ifeq DEBUG WATCOM
  42. CFLAGS    = /zz /d2 /4s /ei /zp4 /zq /mf /DSTDC_HEADERS /DPROTO /DWIN32 /i=$(SRC) $(CURSINC) $(REXXINC) /fo=$@
  43. LDEBUG     = debug watcom all
  44. !else
  45. CFLAGS    = /oneatx /zz /4s /ei /zp4 /zq /mf /DSTDC_HEADERS /DPROTO /DWIN32 /i=$(SRC) $(CURSINC) $(REXXINC) /fo=$@
  46. LDEBUG     =
  47. !endif
  48. !endif
  49. LD        = wlink
  50. XTRAOBJ   = getopt.obj
  51. MAN       = manext.exe
  52. MANLD     = link386 manext+getopt+wildargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  53. RCTHE     = echo the
  54. #RCTHE     = rc $(SRC)\the.res $(PROJ)
  55. docdir = doc
  56. #########################################################################
  57. #
  58. #
  59. # Object files
  60. #
  61. OBJ1 = box.$(OBJ) colour.$(OBJ) comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) &
  62.     commset1.$(OBJ) commset2.$(OBJ) commsos.$(OBJ) cursor.$(OBJ) default.$(OBJ) &
  63.     edit.$(OBJ) error.$(OBJ) execute.$(OBJ) linked.$(OBJ) column.obj mouse.obj memory.obj &
  64.     nonansi.$(OBJ) prefix.$(OBJ) reserved.$(OBJ) scroll.$(OBJ) show.$(OBJ) sort.$(OBJ) &
  65.     target.$(OBJ) the.$(OBJ) util.$(OBJ)
  66. OBJ2 = commutil.$(OBJ) #trace.obj
  67. OBJ3 = getch.$(OBJ)
  68. OBJ4 = query.$(OBJ)
  69. OBJ5 = fnmatch.$(OBJ)
  70. OBJ6 = directry.$(OBJ) file.$(OBJ)
  71. OBJ7 = rexx.$(OBJ)
  72. OBJ8 = wildargv.obj
  73. OBJX = $(XTRAOBJ)
  74. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)
  75. #########################################################################
  76.  
  77. COMM = $(SRC)comm1.c $(SRC)comm2.c $(SRC)comm3.c $(SRC)comm4.c $(SRC)comm5.c &
  78.     $(SRC)commsos.c $(SRC)commset1.c $(SRC)commset2.c $(SRC)query.c
  79.  
  80. APPENDIX = $(SRC)appendix.1
  81. GLOSSARY = $(SRC)glossary
  82.  
  83. #
  84. #########################################################################
  85. $(PROJ):    $(OBJS)
  86.     echo option quiet         >  the.lnk
  87.     echo option map           >> the.lnk
  88.     echo system nt            >> the.lnk
  89.     echo alias _RexxStart=RexxStart >> the.lnk
  90.     echo alias _RexxVariablePool=RexxVariablePool >> the.lnk
  91.     echo alias _RexxRegisterSubcomExe=RexxRegisterSubcomExe >> the.lnk
  92.     echo alias _RexxRegisterExitExe=RexxRegisterExitExe >> the.lnk
  93.     echo alias _RexxRegisterFunctionExe=RexxRegisterFunctionExe >> the.lnk
  94.     echo alias _RexxDeregisterSubcom=RexxDeregisterSubcom >> the.lnk
  95.     echo alias _RexxDeregisterExit=RexxDeregisterExit >> the.lnk
  96.     echo alias _RexxDeregisterFunction=RexxDeregisterFunction >> the.lnk
  97.     echo name the.exe         >> the.lnk
  98.     echo file *.obj           >> the.lnk
  99.     echo library $(CURSLIB)   >> the.lnk
  100.     echo library $(REXXLIB)   >> the.lnk
  101.     $(LD) $(LDEBUG) $(LDFLAGS) @the.lnk
  102.     $(RCTHE)
  103.     del the.lnk
  104. #########################################################################
  105. box.obj:    $(SRC)box.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  106.     $(CC) $(CFLAGS) $(SRC)$*.c
  107. colour.obj:    $(SRC)colour.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  108.     $(CC) $(CFLAGS) $(SRC)$*.c
  109. comm1.obj:    $(SRC)comm1.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  110.     $(CC) $(CFLAGS) $(SRC)$*.c
  111. comm2.obj:    $(SRC)comm2.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  112.     $(CC) $(CFLAGS) $(SRC)$*.c
  113. comm3.obj:    $(SRC)comm3.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  114.     $(CC) $(CFLAGS) $(SRC)$*.c
  115. comm4.obj:    $(SRC)comm4.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  116.     $(CC) $(CFLAGS) $(SRC)$*.c
  117. comm5.obj:    $(SRC)comm5.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  118.     $(CC) $(CFLAGS) $(SRC)$*.c
  119. commset1.obj:    $(SRC)commset1.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  120.     $(CC) $(CFLAGS) $(SRC)$*.c
  121. commset2.obj:    $(SRC)commset2.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  122.     $(CC) $(CFLAGS) $(SRC)$*.c
  123. commsos.obj:    $(SRC)commsos.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  124.     $(CC) $(CFLAGS) $(SRC)$*.c
  125. cursor.obj:    $(SRC)cursor.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  126.     $(CC) $(CFLAGS) $(SRC)$*.c
  127. default.obj:    $(SRC)default.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  128.     $(CC) $(CFLAGS) $(SRC)$*.c
  129. edit.obj:    $(SRC)edit.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  130.     $(CC) $(CFLAGS) $(SRC)$*.c
  131. error.obj:    $(SRC)error.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  132.     $(CC) $(CFLAGS) $(SRC)$*.c
  133. execute.obj:    $(SRC)execute.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  134.     $(CC) $(CFLAGS) $(SRC)$*.c
  135. linked.obj:    $(SRC)linked.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  136.     $(CC) $(CFLAGS) $(SRC)$*.c
  137. column.obj:    $(SRC)column.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  138.     $(CC) $(CFLAGS) $(SRC)$*.c
  139. mouse.obj:    $(SRC)mouse.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  140.     $(CC) $(CFLAGS) $(SRC)$*.c
  141. memory.obj:    $(SRC)memory.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  142.     $(CC) $(CFLAGS) $(SRC)$*.c
  143. nonansi.obj:    $(SRC)nonansi.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  144.     $(CC) $(CFLAGS) $(SRC)$*.c
  145. prefix.obj:    $(SRC)prefix.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  146.     $(CC) $(CFLAGS) $(SRC)$*.c
  147. reserved.obj:    $(SRC)reserved.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  148.     $(CC) $(CFLAGS) $(SRC)$*.c
  149. scroll.obj:    $(SRC)scroll.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  150.     $(CC) $(CFLAGS) $(SRC)$*.c
  151. show.obj:    $(SRC)show.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  152.     $(CC) $(CFLAGS) $(SRC)$*.c
  153. sort.obj:    $(SRC)sort.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  154.     $(CC) $(CFLAGS) $(SRC)$*.c
  155. target.obj:    $(SRC)target.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  156.     $(CC) $(CFLAGS) $(SRC)$*.c
  157. the.obj:    $(SRC)the.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  158.     $(CC) $(CFLAGS) $(SRC)$*.c
  159. util.obj:    $(SRC)util.c $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  160.     $(CC) $(CFLAGS) $(SRC)$*.c
  161. commutil.obj:    $(SRC)commutil.c $(SRC)the.h $(SRC)command.h $(SRC)defines.h $(SRC)proto.h $(SRC)getch.h $(SRC)key.h
  162.     $(CC) $(CFLAGS) $(SRC)$*.c
  163. trace.obj:    $(SRC)trace.c $(SRC)the.h $(SRC)command.h $(SRC)defines.h $(SRC)proto.h $(SRC)getch.h $(SRC)key.h
  164.     $(CC) $(CFLAGS) $(SRC)$*.c
  165. getch.obj:    $(SRC)getch.c $(SRC)getch.h $(SRC)defines.h $(SRC)proto.h
  166.     $(CC) $(CFLAGS) $(SRC)$*.c
  167. query.obj:    $(SRC)query.c $(SRC)query.h $(SRC)the.h $(SRC)defines.h $(SRC)proto.h
  168.     $(CC) $(CFLAGS) $(SRC)$*.c
  169. fnmatch.obj:    $(SRC)fnmatch.c $(SRC)the.h $(SRC)fnmatch.h
  170.     $(CC) $(CFLAGS) $(SRC)$*.c
  171. directry.obj:    $(SRC)directry.c $(SRC)the.h $(SRC)directry.h $(SRC)defines.h $(SRC)proto.h
  172.     $(CC) $(CFLAGS) $(SRC)$*.c
  173. file.obj:    $(SRC)file.c $(SRC)the.h $(SRC)directry.h $(SRC)defines.h $(SRC)proto.h
  174.     $(CC) $(CFLAGS) $(SRC)$*.c
  175. rexx.obj:    $(SRC)rexx.c $(SRC)the.h $(SRC)therexx.h $(SRC)proto.h $(SRC)defines.h $(SRC)query.h
  176.     $(CC) $(CFLAGS) $(SRC)$*.c
  177. getopt.obj:    $(SRC)getopt.c
  178.     $(CC) $(CFLAGS) $(SRC)$*.c
  179.  
  180. wildargv.obj:    $(WATCOMSRC)wildargv.c
  181.     $(CC) $(CFLAGS) $(WATCOMSRC)$*.c
  182. #
  183. #########################################################################
  184. manual:    $(MAN) $(SRC)overview $(COMM) $(APPENDIX) $(GLOSSARY)
  185.     manext $(SRC)overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
  186. #
  187. $(MAN):    $(XTRAOBJ) manext.$(OBJ)
  188.     $(MANLD)
  189.     $(CHMODMAN)
  190.  
  191.  
  192. zip:
  193.     zip thesrc$(VER) README INSTALL TODO COPYING HISTORY THE_Help.txt
  194.     zip thesrc$(VER) overview appendix.1 appendix.2 appendix.3 glossary README.OS2
  195.     zip thesrc$(VER) box.c colour.c comm*.c cursor.c default.c directry.c
  196.     zip thesrc$(VER) edit.c error.c norexx.c scroll.c column.c execute.c
  197.     zip thesrc$(VER) file.c fnmatch.c getch.c getopt.c linked.c mouse.c memory.c
  198.     zip thesrc$(VER) nonansi.c os2eas.c prefix.c query.c reserved.c
  199.     zip thesrc$(VER) rexx.c show.c sort.c target.c the.c trace.c util.c
  200.     zip thesrc$(VER) command.h defines.h directry.h fnmatch.h getch.h
  201.     zip thesrc$(VER) key.h query.h proto.h rexxfill.h therexx.h the.h makefile.dist $(docdir)/*.gif
  202.     zip thesrc$(VER) manext.c *.rsp *.def *.diz files.rcs the*.xbm icons.zip the.res the.rc the.eas
  203.     zip thesrc$(VER) append.the comm.the uncomm.the total.the match.the rm.the
  204.     zip thesrc$(VER) words.the l.the compile.the spell.the demo.the demo.txt
  205.     zip thesrc$(VER) Makefile.in configure config.h.in $(docdir)/THE_Help*
  206.     zip thesrc$(VER) config.guess config.sub install-sh
  207.     zip thesrc$(VER) aclocal.m4 configure.in
  208.     zip thesrc$(VER) man2html.rex
  209. #
  210.