home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / bsrc_260.zip / makefile.nsp < prev    next >
Makefile  |  1996-04-07  |  18KB  |  296 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. ###############################################################
  180. #                                                             #
  181. #  Make file for BinkleyTerm-OS/2 Version 2.60 (NO SNOOP)     #
  182. #                                                             #
  183. #  use MAKE /f MAKEFILE.NSP all                               #
  184. #  or  MAKE /f MAKEFILE.NSP bt32.exe                          #
  185. #  or  MAKE /f MAKEFILE.NSP btctl32.exe                       #
  186. #  or  MAKE /f MAKEFILE.NSP btlng32.exe                       #
  187. #  or  MAKE /f MAKEFILE.NSP binkley.lng                       #
  188. #                                                             #
  189. #  This file is used to build the 32-bit version of the       #
  190. #  software, for use on OS/2 2.x.                             #
  191. #                                                             #
  192. ###############################################################
  193.  
  194.  
  195. model=L            # use large model when debugging -- bugs JUMP out at you
  196. mode=p
  197. SRC_DIR  = ..\src
  198. INCL_DIR = ..\include
  199.  
  200. linklibs = OS2386.LIB
  201. binklibs = ..\lib\maxcomm.lib
  202. CFLAGS   = /Sm /Sp /Ss /O+ /C /G3 /Gs+ /Kbcepr /Q /DOS_2 /I $(INCL_DIR)
  203. LINK     = LINK386
  204. CC       = ICC
  205.  
  206. USEPCH = /Si
  207. MAKEPCH = /Fi
  208.  
  209. DEF_H1   = $(INCL_DIR)\com.h $(INCL_DIR)\com_os2.h $(INCL_DIR)\xfer.h
  210. DEF_H2   = $(INCL_DIR)\bink.h $(INCL_DIR)\zmodem.h $(INCL_DIR)\keybd.h
  211. DEF_H3   = $(INCL_DIR)\sbuf.h $(INCL_DIR)\sched.h $(INCL_DIR)\externs.h
  212. DEF_H4   = $(INCL_DIR)\includes.h $(INCL_DIR)\prototyp.h $(INCL_DIR)\keyfncs.h
  213. DEF_H5   = $(INCL_DIR)\squish.h
  214.  
  215. DEF_H    = $(DEF_H1) $(DEF_H2) $(DEF_H3) $(DEF_H4) $(DEF_H5)
  216.  
  217. cobj1=BT.OBJ       ASYNC.OBJ    FTSC.OBJ     B_SCRIPT.OBJ SBUF.OBJ
  218. cobj2=BTCONFIG.OBJ BREC.OBJ     B_SEARCH.OBJ B_TODAY.OBJ
  219. cobj3=B_TERMOV.OBJ BSEND.OBJ    B_SESSIO.OBJ B_FAXRCV.OBJ
  220. cobj4=B_BANNER.OBJ B_SPAWN.OBJ  UPLOAD.OBJ   DOWNLOAD.OBJ
  221. cobj5=B_BBS.OBJ    MAILER.OBJ   B_TERM.OBJ
  222. cobj6=B_FLOFIL.OBJ MAILROOT.OBJ B_WAZOO.OBJ  MAILOVLY.OBJ SQUISH.OBJ
  223. cobj7=B_FRPROC.OBJ MDM_PROC.OBJ B_WHACK.OBJ  SCHED.OBJ
  224. cobj8=B_FUSER.OBJ  MISC.OBJ     B_WZSEND.OBJ TIMER.OBJ
  225. cobj9=B_HELP.OBJ   NODEPROC.OBJ SENDBARK.OBJ VFOSSIL.OBJ
  226. cobja=B_INITVA.OBJ M7REC.OBJ    DATA.OBJ     M7SEND.OBJ   EMSI.OBJ
  227. cobjb=B_PASSWO.OBJ YOOHOO.OBJ   VERSION7.OBJ
  228. cobjc=B_PROTO.OBJ  DOSFUNCS.OBJ ZMISC.OBJ
  229. cobjd=B_RSPFIL.OBJ EVTPARSE.OBJ ZRECEIVE.OBJ
  230. cobje=B_SBINIT.OBJ FOSSIL.OBJ   ZSEND.OBJ
  231. cobjf=KEYMAP.OBJ   JANUS.OBJ    OUTBOUND.OBJ SENDSYNC.OBJ FILE_DOS.OBJ
  232. cobjg=STATETBL.OBJ XMREC.OBJ    XMSEND.OBJ   LANGLOAD.OBJ
  233. cobjh=RECVBARK.OBJ RECVSYNC.OBJ HYDRA.OBJ    AGLCRC.OBJ
  234.  
  235. cobjs1=BTCTL.OBJ
  236.  
  237. cobjs2=BTLNG.OBJ   GET_LANG.OBJ PUT_LANG.OBJ
  238.  
  239. btobjs = $(cobj1) $(cobj2) $(cobj3) $(cobj4) $(cobj5) $(cobj6) $(cobj7) $(cobj8) $(cobj9) $(cobja) $(cobjb) $(cobjc) $(cobjd) $(cobje) $(cobjf) $(cobjg) $(cobjh)
  240. btpch = INCLUDES.OBJ
  241.  
  242. all: btlng32.exe bt32.exe btctl32.exe binkley.lng
  243.  
  244. clean :
  245.     !del *.obj
  246.     !del *.pch
  247.     !del *.map
  248.     !del *.exe
  249.  
  250. bt32.exe:  $(btpch) $(btobjs)
  251.         $(LINK) @<<file.lrf
  252.  $(btobjs: = +^
  253. )
  254. bt32.exe/align:16 /noi /nol /pmtype:vio /stack:16384 /exepack /base:65536
  255. BT32.MAP
  256. $(linklibs) $(binklibs)
  257. NUL.DEF
  258. <<
  259.  
  260. bt32dbg.exe:  $(btpch) $(btobjs)
  261.         $(LINK) @<<file.lrf
  262.  /debug $(btobjs: = +^
  263. )
  264. bt32dbg.exe/align:16 /noi /nol /pmtype:vio /stack:16384 /exepack /base:65536
  265. BT32dbg.MAP
  266. $(linklibs) $(binklibs)
  267. NUL.DEF
  268. <<
  269.  
  270. btctl32.exe: $(cobjs1)
  271.         $(LINK) $(cobjs1),btctl32.exe/align:16 /noi /nol /pmtype:vio /exepack /base:65536,NUL.MAP,$(linklibs),NUL.DEF
  272.  
  273. btlng32.exe: $(cobjs2)
  274.         $(LINK) $(cobjs2),btlng32.exe/align:16 /noi /nol /pmtype:vio /exepack /base:65536,NUL.MAP,$(linklibs),NUL.DEF
  275.  
  276. binkley.lng: btlng32.exe $(SRC_DIR)\english.txt
  277.  btlng32 $(SRC_DIR)\english.txt binkley.lng
  278.  
  279. $(btpch): $(SRC_DIR)\$*.c $(DEF_H)
  280.         $(CC) $(CFLAGS) $(MAKEPCH) $(SRC_DIR)\$*.c
  281.  
  282. $(btobjs): $(SRC_DIR)\$*.c $(btpch)
  283.         $(CC) $(CFLAGS) $(USEPCH) $(SRC_DIR)\$*.c
  284.  
  285. btctl.obj: $(SRC_DIR)\btctl.c $(DEF_H)
  286.         $(CC) $(CFLAGS) $(SRC_DIR)\BTCTL.C
  287.  
  288. BTLNG.OBJ:  $(SRC_DIR)\BTLNG.C
  289.         $(CC) $(CFLAGS) $(SRC_DIR)\BTLNG.C
  290.  
  291. GET_LANG.OBJ: $(SRC_DIR)\GET_LANG.C
  292.         $(CC) $(CFLAGS)  $(SRC_DIR)\GET_LANG.C
  293.  
  294. PUT_LANG.OBJ: $(SRC_DIR)\PUT_LANG.C
  295.         $(CC) $(CFLAGS)  $(SRC_DIR)\PUT_LANG.C
  296.