home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bde / snipit.pak / MAKEFILE < prev    next >
Encoding:
Text File  |  1997-07-24  |  4.0 KB  |  234 lines

  1. .autodepend
  2. .swap
  3.  
  4. # (C) Copyright 1995 by Borland International
  5. #
  6. # SnipIt! code Viewer MAKEFILE for Borland C++ v4.5.
  7. #
  8. #     Use 'make -DBCROOT=<compiler root directory>' to specify
  9. #       where the compiler resides.
  10. #     Can also set the environment variables 'INCLUDE' and 'LIB'
  11. #       to specify the compiler include and lib directories.
  12. #
  13. #     Set 'IDAPIINC' and 'IDAPILIB' to the IDAPI INCLUDE and
  14. #       IDAPI LIB directories if you did not install to the
  15. #       default directory structure.
  16. #
  17.  
  18. # Set the IDAPI INCLUDE and LIB directory
  19. !ifndef IDAPIINC
  20. IDAPIINC = ..\..\include
  21. !endif
  22.  
  23. !ifndef IDAPILIB
  24. IDAPILIB = ..\..\lib
  25. !endif
  26.  
  27. # BCROOT is only used if either the INCLUDE or LIB
  28. # environment variable is not used.
  29. !ifndef BCROOT
  30. BCROOT = c:\bc45
  31. !endif
  32.  
  33. # Check if the INCLUDE environment variable exists
  34. # If not, set it
  35. !ifndef INCLUDE
  36. INCLUDE = $(BCROOT)\include
  37. !endif
  38.  
  39. # Check if the LIB environment variable exists
  40. # If not, set it
  41. !ifndef LIB
  42. LIB = $(BCROOT)\lib
  43. !endif
  44.  
  45. # Set the compiler, linker, and Resource Compiler
  46. CC       = bcc
  47. TLINK    = tlink
  48. BRC      = brc
  49.  
  50. # Set the full INCLUDE and LIB search paths
  51. INCLUDE = $(IDAPIINC);$(INCLUDE)
  52. LIB     = $(IDAPILIB);$(LIB)
  53.  
  54. # Set the Compiler, Linker, and Resource Compiler Options
  55. BCCOPT   = -dc -d -Ff=16 -c -ml -WS -R -v -vi -X- -H=snipit.csm -D_RTLDLL;STRICT;
  56. TLINKOPT = -L$(LIB) -Twe -c -C -s
  57. RCOPT    = -I$(INCLUDE) -31
  58.  
  59. # Dependnecy List
  60. DEPENDENCIES = \
  61.    addalias.obj\
  62.    aliases.obj\
  63.    batmove.obj\
  64.    blobio.obj\
  65.    blobsmpl.obj\
  66.    block.obj\
  67.    bookmark.obj\
  68.    callback.obj\
  69.    config.obj\
  70.    cr8pxtbl.obj\
  71.    cr8dbtbl.obj\
  72.    cr8txtbl.obj\
  73.    dbio.obj\
  74.    dblogin.obj\
  75.    drvcaps.obj\
  76.    errval.obj\
  77.    fieldmap.obj\
  78.    filter.obj\
  79.    filtcomp.obj\
  80.    filtcont.obj\
  81.    format.obj\
  82.    idxdbase.obj\
  83.    idxexpr.obj\
  84.    idxpdox.obj\
  85.    initeng.obj\
  86.    inmemtbl.obj\
  87.    inputreq.obj\
  88.    keyupdt.obj\
  89.    langdrv.obj\
  90.    lnkcrsr.obj\
  91.    lsql.obj\
  92.    lsqljoin.obj\
  93.    lsqllive.obj\
  94.    navigate.obj\
  95.    optparam.obj\
  96.    password.obj\
  97.    prdxsort.obj\
  98.    qbe.obj\
  99.    qbe2.obj\
  100.    range.obj\
  101.    reclock.obj\
  102.    recupdat.obj\
  103.    rdolock.obj\
  104.    refinteg.obj\
  105.    search.obj\
  106.    secdesc.obj\
  107.    session.obj\
  108.    softdel.obj\
  109.    sqlbind.obj\
  110.    storproc.obj\
  111.    sysinfo.obj\
  112.    tblinfo.obj\
  113.    tbllist.obj\
  114.    tbllock.obj\
  115.    tblopen.obj\
  116.    tbrstrct.obj\
  117.    test.obj\
  118.    textimp.obj\
  119.    textexp.obj\
  120.    transact.obj\
  121.    updtcrnt.obj\
  122.    upsize.obj\
  123.    valcheck.obj\
  124.    input.obj\
  125.    snipdata.obj\
  126.    snipmain.obj\
  127.    sniptool.obj\
  128.    snipit.res
  129.  
  130. # Implicit Rules
  131. .c.obj:
  132.     $(CC) -I$(INCLUDE) $<
  133.  
  134. .rc.res:
  135.     $(BRC) -r -31 -i$(INCLUDE) $.
  136.  
  137. # Explicit rules
  138.  
  139. all: turboc.cfg snipit.exe
  140.  
  141. turboc.cfg: makefile
  142.     echo $(BCCOPT) >turboc.cfg
  143.     del *.obj
  144.  
  145. snipit.exe: turboc.cfg $(DEPENDENCIES)
  146.   $(TLINK)   @&&|
  147.  /v $(TLINKOPT) +
  148. c0wl.obj+
  149. addalias.obj+
  150. aliases.obj+
  151. batmove.obj+
  152. blobio.obj+
  153. blobsmpl.obj+
  154. block.obj+
  155. bookmark.obj+
  156. callback.obj+
  157. config.obj+
  158. cr8pxtbl.obj+
  159. cr8dbtbl.obj+
  160. cr8txtbl.obj+
  161. dbio.obj+
  162. dblogin.obj+
  163. drvcaps.obj+
  164. errval.obj+
  165. fieldmap.obj+
  166. filter.obj+
  167. filtcomp.obj+
  168. filtcont.obj+
  169. format.obj+
  170. idxdbase.obj+
  171. idxexpr.obj+
  172. idxpdox.obj+
  173. initeng.obj+
  174. inmemtbl.obj+
  175. inputreq.obj+
  176. keyupdt.obj+
  177. langdrv.obj+
  178. lnkcrsr.obj+
  179. lsql.obj+
  180. lsqljoin.obj+
  181. lsqllive.obj+
  182. navigate.obj+
  183. optparam.obj+
  184. password.obj+
  185. prdxsort.obj+
  186. qbe.obj+
  187. qbe2.obj+
  188. range.obj+
  189. reclock.obj+
  190. recupdat.obj+
  191. rdolock.obj+
  192. refinteg.obj+
  193. search.obj+
  194. secdesc.obj+
  195. session.obj+
  196. softdel.obj+
  197. sqlbind.obj+
  198. storproc.obj+
  199. sysinfo.obj+
  200. tblinfo.obj+
  201. tbllist.obj+
  202. tbllock.obj+
  203. tblopen.obj+
  204. tbrstrct.obj+
  205. test.obj+
  206. textimp.obj+
  207. textexp.obj+
  208. transact.obj+
  209. updtcrnt.obj+
  210. upsize.obj+
  211. valcheck.obj+
  212. input.obj+
  213. snipdata.obj+
  214. snipmain.obj+
  215. sniptool.obj
  216. $<,$*
  217. idapi.lib+
  218. import.lib+
  219. mathwl.lib+
  220. ctl3dv2.lib+
  221. cwl.lib
  222. snipit.def
  223. snipit.res
  224. |
  225.     $(BRC) snipit.res $<
  226.  
  227. clean:
  228.     del *.obj
  229.     del *.exe
  230.     del *.res
  231.     del *.map
  232.     del *.csm
  233.     del turboc.cfg
  234.