home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / bsrc_260.zip / w32bink.mak < prev   
Text File  |  1996-04-07  |  18KB  |  319 lines

  1. #--------------------------------------------------------------------------#
  2. #                                                                          #
  3. #                                                                          #
  4. #      ------------         Bit-Bucket Software, Co.                       #
  5. #      \ 10001101 /         Writers and Distributors of                    #
  6. #       \ 011110 /          Freely Available<tm> Software.                 #
  7. #        \ 1011 /                                                          #
  8. #         ------                                                           #
  9. #                                                                          #
  10. #              (C) Copyright 1987-96, Bit Bucket Software Co.              #
  11. #                                                                          #
  12. #                                                                          #
  13. #            Makefile for BinkleyTerm (Microsoft NMAKE version)            #
  14. #                                                                          #
  15. #                                                                          #
  16. #                       BinkleyTerm Licensing Terms                        #
  17. #                                                                          #
  18. #                                                                          #
  19. #               (C) Copyright 1987-96 Bit Bucket Software Co.              #
  20. # ALL RIGHTS RESERVED. COMMERCIAL DISTRIBUTION AND/OR USE PROHIBITED       #
  21. # WITHOUT WRITTEN PERMISSION FROM BIT BUCKET SOFTWARE CO.                  #
  22. #                                                                          #
  23. # Non-Commercial distribution and/or use is permitted under the following  #
  24. # terms:                                                                   #
  25. #                                                                          #
  26. #                                                                          #
  27. # 1. You may copy and distribute verbatim copies of BinkleyTerm source,    #
  28. # documentation, and executable code as you receive it, in any medium,     #
  29. # provided that you conspicuously and appropriately publish on each copy a #
  30. # valid copyright notice "(C) Copyright 1987-96, Bit Bucket Software Co."; #
  31. # keep intact the notices on all files that refer to this License          #
  32. # Agreement and to the absence of any warranty;  PROVIDE UNMODIFIED COPIES #
  33. # OF THE DOCUMENTATION AS PROVIDED WITH THE PROGRAM; and give any other    #
  34. # recipients of the BinkleyTerm program a copy of this License Agreement   #
  35. # along with the program.  You may charge a distribution fee for the       #
  36. # physical act of transferring a copy, but no more than is necessary to    #
  37. # recover your actual costs incurred in the transfer. Under no             #
  38. # circumstances is BinkleyTerm to be distributed in such a way as to be    #
  39. # construed as "value added" in a sales transaction, such as, but not      #
  40. # limited to, software bundled with a modem or CD-ROM software             #
  41. # collections.                                                             #
  42. #                                                                          #
  43. # 2. You may modify your copy or copies of BinkleyTerm or any portion of   #
  44. # it, and copy and distribute such modifications under the terms of        #
  45. # Paragraph 1 above, provided that you also do the following:              #
  46. #                                                                          #
  47. #     a) cause the modified files to carry prominent notices stating       #
  48. #     that you changed the files and the date of any change;               #
  49. #                                                                          #
  50. #     b) cause the executable code of such modified version to clearly     #
  51. #     identify itself as such in the course of its normal operation;       #
  52. #                                                                          #
  53. #     c) if the modified version is not a "port", but operates in the      #
  54. #     same hardware and/or software environment as the original            #
  55. #     distribution, make the original version equally available,           #
  56. #     clearly identifying same as the original, unmodified version;        #
  57. #                                                                          #
  58. #     d) cause the whole of any work that you distribute or publish,       #
  59. #     that in whole or in part contains or is a derivative of              #
  60. #     BinkleyTerm or any part thereof, to be licensed at no charge to      #
  61. #     all third parties on terms identical to those contained in this      #
  62. #     License Agreement (except that you may choose to grant more          #
  63. #     extensive warranty protection to some or all third parties, at       #
  64. #     your option); and                                                    #
  65. #                                                                          #
  66. #     e) send the complete source code modifications to Bit Bucket         #
  67. #     Software Co. at one of the addresses listed below,  for the          #
  68. #     purpose of evaluation for inclusion in future releases of            #
  69. #     BinkleyTerm.  Should your source code be included in BinkleyTerm,    #
  70. #     Bit Bucket Software Co. retains all rights for redistribution of     #
  71. #     the code as part of BinkleyTerm and all derivative works, with       #
  72. #     appropriate credit given to the author of the modification.          #
  73. #                                                                          #
  74. #     f) You may charge a distribution fee for the physical act of         #
  75. #     transferring a copy, but no more than is necessary to recover        #
  76. #     your actual costs incurred in the transfer, and you may at your      #
  77. #     option offer warranty protection in exchange for a fee.              #
  78. #                                                                          #
  79. # 3. Mere aggregation of another unrelated program with this program and   #
  80. # documentation (or derivative works) on a volume of a storage or          #
  81. # distribution medium does not bring the other program under the scope of  #
  82. # these terms.                                                             #
  83. #                                                                          #
  84. # 4. You may copy and distribute BinkleyTerm and its associated            #
  85. # documentation (or a portion or derivative of it, under Paragraph 2) in   #
  86. # object code or executable form under the terms of Paragraphs 1 and 2     #
  87. # above provided that you also do one of the following:                    #
  88. #                                                                          #
  89. #     a) accompany it with the complete corresponding machine-readable     #
  90. #     source code, which must be distributed under the terms of            #
  91. #     Paragraphs 1 and 2 above; or,                                        #
  92. #                                                                          #
  93. #     b) accompany it with a written offer, valid for at least three       #
  94. #     years, to give any third party free (except for a nominal            #
  95. #     shipping charge) a complete machine-readable copy of the             #
  96. #     corresponding source code, to be distributed under the terms of      #
  97. #     Paragraphs 1 and 2 above; or,                                        #
  98. #                                                                          #
  99. #     c) accompany it with the information you received as to where        #
  100. #     the corresponding source code may be obtained.  (This                #
  101. #     alternative is allowed only for noncommercial distribution and       #
  102. #     only if you received the program in object code or executable        #
  103. #     form alone.)                                                         #
  104. #                                                                          #
  105. # For an executable file, complete source code means all the source code   #
  106. # for all modules it contains; but, as a special exception, it need not    #
  107. # include source code for modules which are standard libraries that        #
  108. # accompany the operating system on which the executable file runs.        #
  109. #                                                                          #
  110. # 5. You may not copy, sublicense, distribute or transfer BinkleyTerm and  #
  111. # its associated documentation  except as expressly provided under this    #
  112. # License Agreement.  Any attempt otherwise to copy, sublicense,           #
  113. # distribute or transfer BinkleyTerm is void and your rights to use the    #
  114. # program under this License agreement shall be automatically terminated.  #
  115. # However, parties who have received computer software programs from you   #
  116. # with this License Agreement will not have their licenses terminated so   #
  117. # long as such parties remain in full compliance, and notify Bit Bucket    #
  118. # Software Co. of their intention to comply with this Agreement.           #
  119. #                                                                          #
  120. # 6. If you wish to incorporate parts of BinkleyTerm into other free       #
  121. # programs whose distribution conditions are different, please contact     #
  122. # Bit Bucket Software Co. at one of the addresses listed below.  We have   #
  123. # not yet worked out a simple rule that can be stated here, but we will    #
  124. # usually permit this.  We will be guided by the two goals of preserving   #
  125. # the free status of all derivatives of our free software (as it pertains  #
  126. # to Non-Commercial use as provided by this Agreement) and of promoting    #
  127. # the sharing and reuse of software.                                       #
  128. #                                                                          #
  129. # 7. For the purposes of this document, "COMMERCIAL USE" is defined as     #
  130. # operation of the software on four or more computers or data lines owned  #
  131. # by the same for-profit organization. Any organization may operate this   #
  132. # software under the terms of this Non-Commercial Agreement if operation   #
  133. # is limited to three or less computers or data lines.                     #
  134. #                                                                          #
  135. #                                                                          #
  136. #                                NO WARRANTY                               #
  137. #                                                                          #
  138. # BECAUSE BINKLEYTERM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY NO #
  139. # WARRANTY.  EXCEPT WHEN OTHERWISE STATED IN WRITING, BIT BUCKET SOFTWARE  #
  140. # CO. AND/OR OTHER PARTIES PROVIDE BINKLEYTERM "AS IS" WITHOUT WARRANTY OF #
  141. # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,    #
  142. # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR   #
  143. # PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF           #
  144. # BINKLEYTERM, AND THE ACCURACY OF ITS ASSOCIATED DOCUMENTATION, IS WITH   #
  145. # YOU.  SHOULD BINKLEYTERM OR ITS ASSOCIATED DOCUMENTATION PROVE           #
  146. # DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR     #
  147. # CORRECTION.                                                              #
  148. #                                                                          #
  149. # IN NO EVENT WILL BIT BUCKET SOFTWARE CO. BE RESPONSIBLE IN ANY WAY FOR   #
  150. # THE BEHAVIOR OF MODIFIED VERSIONS OF BINKLEYTERM. IN NO EVENT WILL       #
  151. # BIT BUCKET SOFTWARE CO. AND/OR ANY OTHER PARTY WHO MAY MODIFY AND        #
  152. # REDISTRIBUTE BINKLEYTERM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR        #
  153. # DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL,      #
  154. # INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY  #
  155. # TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED #
  156. # INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE      #
  157. # PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) BINKLEYTERM, EVEN IF YOU     #
  158. # HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM   #
  159. # BY ANY OTHER PARTY.                                                      #
  160. #                                                                          #
  161. #                                                                          #
  162. # You can contact Bit Bucket Software Co. at any one of the following      #
  163. # addresses:                                                               #
  164. #                                                                          #
  165. # Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             #
  166. # P.O. Box 460398                AlterNet 7:42/1491                        #
  167. # Aurora, CO 80046               Internet f491.n343.z1.fidonet.org         #
  168. #                                                                          #
  169. #                                                                          #
  170. # Please feel free to contact us at any time to share your comments about  #
  171. # our software and/or licensing policies.                                  #
  172. #                                                                          #
  173. # Our thanks to Richard Stallman and the Free Software Foundation, Inc.,   #
  174. # for most of the wording of this License.                                 #
  175. #                                                                          #
  176. #--------------------------------------------------------------------------#
  177.  
  178. #
  179. # Definitions
  180. #
  181.  
  182. SRC_DIR  = ..\src
  183. INCL_DIR = ..\include
  184.  
  185. # C Compiler variables:
  186.  
  187. cc = cl
  188.  
  189. !IF "$(DEBUG)" != ""
  190. cdebug = -Zi -Od -DDEBUG
  191. linkdebug = -debug:full -debugtype:both
  192. !ELSE
  193. cdebug = -Zi -Oagtyb1 -Gs -G5
  194. linkdebug =
  195. !ENDIF
  196.  
  197. cflags = -c
  198. cclcl = -Zp -I $(INCL_DIR)
  199. ccnopk = -I $(INCL_DIR)
  200. cvars = -D_X86_=1 -D_WIN32
  201.  
  202. !IF "$(WARNINGS)" != ""
  203. cwarn = -W4
  204. !ELSE
  205. cwarn = -W3
  206. !ENDIF
  207.  
  208. # Linker variables:
  209.  
  210. link = link
  211. conflags = -align:0x1000 -subsystem:console -entry:mainCRTStartup
  212. conlibs    = libc.lib kernel32.lib
  213.  
  214. #
  215. # Object files that MSVC++ (2.X, 4.X etc) is responsible for generating:
  216. #
  217.  
  218. # First those for the main BinkleyTerm module
  219. #
  220. btobj = bt.obj       btconfig.obj langload.obj timer.obj    misc.obj     \
  221.         b_help.obj   file_dos.obj dosfuncs.obj keymap.obj   b_today.obj  \
  222.         mdm_proc.obj b_script.obj b_fuser.obj  nodeproc.obj version7.obj \
  223.         b_proto.obj  b_bbs.obj    b_search.obj b_sessio.obj recvbark.obj \
  224.         yoohoo.obj   b_wazoo.obj  b_wzsend.obj ftsc.obj     mailer.obj   \
  225.         sendbark.obj sched.obj    fossil.obj   b_passwo.obj b_frproc.obj \
  226.         zreceive.obj zsend.obj    zmisc.obj    sendsync.obj recvsync.obj \
  227.         data.obj     b_termov.obj b_banner.obj b_initva.obj b_faxrcv.obj \
  228.         b_sbinit.obj b_flofil.obj mailovly.obj evtparse.obj b_whack.obj  \
  229.         sbuf.obj     b_spawn.obj  b_rspfil.obj b_term.obj   \
  230.         xmsend.obj   m7send.obj   bsend.obj    brec.obj     xmrec.obj    \
  231.         m7rec.obj    janus.obj    statetbl.obj outbound.obj squish.obj   \
  232.         mailroot.obj upload.obj   download.obj emsi.obj
  233.  
  234. bwobj = async_nt.obj vfos_nt.obj
  235.  
  236. INCL_FILES = $(INCL_DIR)\includes.h $(INCL_DIR)\bink.h                   \
  237.              $(INCL_DIR)\defines.h $(INCL_DIR)\com.h                     \
  238.              $(INCL_DIR)\com_nt.h $(INCL_DIR)\xfer.h                     \
  239.              $(INCL_DIR)\msgs.h $(INCL_DIR)\zmodem.h $(INCL_DIR)\keybd.h \
  240.              $(INCL_DIR)\keyfncs.h $(INCL_DIR)\sbuf.h                    \
  241.              $(INCL_DIR)\sched.h $(INCL_DIR)\timer.h                     \
  242.              $(INCL_DIR)\vfossil.h $(INCL_DIR)\externs.h                 \
  243.              $(INCL_DIR)\prototyp.h $(INCL_DIR)\squish.h
  244.  
  245. # Next those for BTCTL, the program that makes a dummy OMMM CTL file
  246. #
  247. cobj1 = btctl.obj
  248.  
  249. # Then those for BTLNG, Bink's language compiler
  250. cobj2 = btlng.obj get_lang.obj put_lang.obj
  251.  
  252. #
  253. # Dependency list for regular and debug version, and LINK
  254. # command lines
  255. #
  256.  
  257. all :    binkley.lng bt32.exe btctl32.exe btlng32.exe
  258.  
  259. clean :
  260.     !del *.obj
  261.     !del *.pch
  262.     !del *.pbi
  263.     !del *.pbt
  264.     !del *.pcf
  265.     !del *.sym
  266.     !del *.pdb
  267.     !del *.map
  268.     !del *.exe
  269.  
  270. bt32.exe:  $(btobj) $(bwobj)
  271.     $(link) @<<file.lrf
  272. $(linkdebug) $(conflags) $(btobj: = ^
  273. )
  274. $(bwobj)
  275. includes.obj
  276. $(conlibs) winmm.lib -out:bt32.exe -map
  277. <<
  278.  
  279. btctl32.exe: $(cobj1)
  280.     $(link) $(conflags) $(cobj1) $(conlibs) -out:btctl32.exe
  281.  
  282. btlng32.exe: $(cobj2)
  283.     $(link) $(conflags) $(cobj2) $(conlibs) -out:btlng32.exe
  284.  
  285. binkley.lng: btlng32.exe $(SRC_DIR)\english.txt
  286.     btlng32 $(SRC_DIR)\english.txt binkley.lng
  287.  
  288. clean:
  289.     -del *.obj
  290.     -del *.pch
  291.     -del *.map
  292.     -del *.exe
  293.     -del binkley.lng
  294.  
  295. goal:    all
  296.  
  297. #
  298. # Dependencies for .C files and compiler line to generate 'em.
  299. #
  300.  
  301. $(btobj): $(SRC_DIR)\$*.c includes.pch
  302.     $(cc) $(cdebug) $(cflags) $(cwarn) $(cclcl) $(cvars) -Yuincludes.h $(SRC_DIR)\$*.c 
  303.  
  304. includes.pch: $(INCL_FILES)
  305.     $(cc) $(cdebug) $(cflags) $(cwarn) $(cclcl) $(cvars) -Ycincludes.h $(SRC_DIR)\includes.c
  306.  
  307. $(bwobj): $(SRC_DIR)\$*.c
  308.     $(cc) $(cdebug) $(cflags) $(cwarn) $(ccnopk) $(cvars) $(SRC_DIR)\$*.c
  309.  
  310. $(cobj1): $(SRC_DIR)\$*.c $(INCL_DIR)\com.h $(INCL_DIR)\xfer.h $(INCL_DIR)\bink.h
  311.     $(cc) $(cdebug) $(cflags) $(cwarn) $(cclcl) $(cvars) $(SRC_DIR)\$*.c
  312.  
  313. $(cobj2): $(SRC_DIR)\$*.c $(INCL_DIR)\language.h
  314.     $(cc) $(cdebug) $(cflags) $(cwarn) $(cclcl) $(cvars) $(SRC_DIR)\$*.c
  315. #
  316. # Modules with special includes here
  317. #
  318. langload.obj: $(INCL_DIR)\msgs.h
  319.