makefile.bcc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. .AUTODEPEND
  2. basepath = $(BASEPATHCC)
  3. binpath = $(basepath)\bin
  4. libpath = $(basepath)\lib
  5. rarpath = .
  6. incpath = $(basepath)\include;$(rarpath)
  7. cc = $(binpath)\bcc32
  8. link = $(binpath)\ilink32
  9. objpath = .
  10. guiopt = -WC -H=$(objpath)\rar.csm
  11. !ifndef RARDLL
  12. !ifndef GUI
  13. guiopt=$(guiopt) -x-
  14. !endif
  15. !ifdef SFX_MODULE
  16. guiopt=$(guiopt) -x-
  17. !endif
  18. !endif
  19. !ifdef DEBUG
  20. optdeb=-Od -k -vi- -DDEBUG
  21. !else
  22. # -O is not safe to use with -pr and int64 return values, so let's turn it off
  23. optdeb=-O1 -O- -k-
  24. #optdeb=-Ob -Oe -Og -Oi -Ol -Om -Op -OS -Ov -Z -Oc
  25. !endif
  26. optunrar=-DUNRAR
  27. linkdest=unrar.exe
  28. !ifdef SFX_MODULE
  29. optunrar=-DUNRAR -DSFX_MODULE
  30. linkdest=sfx.exe
  31. !endif
  32. linkopt = -L$(libpath) -ap -c -v -s -V4.0 -Gn
  33. compopt = -P -c -I$(incpath) -R -v -vi -w-pch -w-par -K -f-\
  34. -ff- -a4 -pr -RT- $(optdeb) $(guiopt) $(optunrar) -d -w-8072
  35. !ifdef RARDLL
  36. SILENT=true
  37. linkdest=unrar.dll
  38. linkopt=$(linkopt) -Tpd
  39. compopt=$(compopt) -DRARDLL
  40. !else
  41. linkopt=$(linkopt) -Tpe -B:0x400000
  42. !endif
  43. !ifdef SILENT
  44. compopt=$(compopt) -DSILENT
  45. !endif
  46. rar: $(linkdest)
  47. Dep_SFX= \
  48. $(objpath)\strlist.obj\
  49. $(objpath)\strfn.obj\
  50. $(objpath)\pathfn.obj\
  51. $(objpath)\cmddata.obj\
  52. $(objpath)\consio.obj\
  53. $(objpath)\savepos.obj\
  54. $(objpath)\smallfn.obj\
  55. $(objpath)\file.obj\
  56. $(objpath)\filefn.obj\
  57. $(objpath)\filcreat.obj\
  58. $(objpath)\sha1.obj\
  59. $(objpath)\archive.obj\
  60. $(objpath)\arcread.obj\
  61. $(objpath)\unicode.obj\
  62. $(objpath)\system.obj\
  63. $(objpath)\isnt.obj\
  64. $(objpath)\crc.obj\
  65. $(objpath)\crypt.obj\
  66. $(objpath)\rijndael.obj\
  67. $(objpath)\rawread.obj\
  68. $(objpath)\encname.obj\
  69. $(objpath)\resource.obj\
  70. $(objpath)\match.obj\
  71. $(objpath)\find.obj\
  72. $(objpath)\timefn.obj\
  73. $(objpath)\getbits.obj\
  74. $(objpath)\rarvm.obj\
  75. $(objpath)\rdwrfn.obj\
  76. $(objpath)\options.obj\
  77. $(objpath)\ulinks.obj\
  78. $(objpath)\errhnd.obj\
  79. $(objpath)\volume.obj\
  80. $(objpath)\rs.obj\
  81. $(objpath)\recvol.obj\
  82. $(objpath)\extinfo.obj\
  83. $(objpath)\extract.obj\
  84. $(objpath)\unpack.obj\
  85. $(objpath)\rar.obj\
  86. $(objpath)\global.obj
  87. Dep_Unrar = \
  88. $(objpath)\filestr.obj\
  89. $(objpath)\scantree.obj
  90. Dep_Dll = \
  91. $(objpath)\dll.obj
  92. #Dep_SFXOnly = $(objpath)\rtl.obj
  93. !ifndef GUI
  94. !ifndef SILENT
  95. Dep_Console = \
  96. $(objpath)\list.obj
  97. !endif
  98. !endif
  99. !ifdef SFX_MODULE
  100. Dep = $(Dep_SFX) $(Dep_SFXOnly)
  101. !else
  102. Dep = $(Dep_SFX) $(Dep_Unrar)
  103. !endif
  104. !ifndef GUI
  105. Dep = $(Dep) $(Dep_Console)
  106. !endif
  107. !ifdef RARDLL
  108. Dep = $(Dep) $(Dep_Dll)
  109. !endif
  110. !ifdef GUI
  111. $(linkdest) : $(Dep)
  112. echo Done
  113. !else
  114. $(linkdest) : $(Dep)
  115. $(link) @&&|
  116. $(linkopt) +
  117. #!ifdef SFX_MODULE
  118. #$(objpath)\dummy.obj+
  119. #$(objpath)\ll.obj+
  120. #$(objpath)\rtl.obj+
  121. #!else
  122. !ifdef RARDLL
  123. $(libpath)\c0d32.obj+
  124. !else
  125. $(libpath)\c0x32.obj+
  126. !endif
  127. #!endif
  128. $(objpath)\strlist.obj+
  129. $(objpath)\strfn.obj+
  130. $(objpath)\pathfn.obj+
  131. $(objpath)\savepos.obj+
  132. $(objpath)\smallfn.obj+
  133. $(objpath)\global.obj+
  134. $(objpath)\file.obj+
  135. $(objpath)\filefn.obj+
  136. $(objpath)\filcreat.obj+
  137. $(objpath)\sha1.obj+
  138. $(objpath)\archive.obj+
  139. $(objpath)\arcread.obj+
  140. $(objpath)\unicode.obj+
  141. $(objpath)\system.obj+
  142. $(objpath)\isnt.obj+
  143. $(objpath)\crc.obj+
  144. $(objpath)\crypt.obj+
  145. $(objpath)\rijndael.obj+
  146. $(objpath)\rawread.obj+
  147. $(objpath)\encname.obj+
  148. $(objpath)\resource.obj+
  149. $(objpath)\match.obj+
  150. $(objpath)\find.obj+
  151. !ifndef SFX_MODULE
  152. $(objpath)\filestr.obj+
  153. $(objpath)\scantree.obj+
  154. !endif
  155. $(objpath)\timefn.obj+
  156. $(objpath)\getbits.obj+
  157. $(objpath)\rarvm.obj+
  158. $(objpath)\rdwrfn.obj+
  159. $(objpath)\consio.obj+
  160. $(objpath)\cmddata.obj+
  161. $(objpath)\options.obj+
  162. $(objpath)\ulinks.obj+
  163. $(objpath)\volume.obj+
  164. $(objpath)\extinfo.obj+
  165. $(objpath)\extract.obj+
  166. $(objpath)\rs.obj+
  167. $(objpath)\recvol.obj+
  168. !ifndef SILENT
  169. !ifndef GUI
  170. $(objpath)\list.obj+
  171. !endif
  172. !endif
  173. !ifdef RARDLL
  174. $(objpath)\dll.obj+
  175. !endif
  176. $(objpath)\errhnd.obj+
  177. $(objpath)\unpack.obj+
  178. $(objpath)\rar.obj
  179. $<,$*
  180. $(libpath)\cw32.lib+
  181. $(libpath)\import32.lib
  182. !ifdef RARDLL
  183. $(rarpath)\dll.def
  184. !else
  185. !endif
  186. |
  187. !endif
  188. $(objpath)\rar.obj : $(rarpath)\rar.cpp
  189. $(cc) -q @&&|
  190. $(compopt) -o$@ $(rarpath)\rar.cpp
  191. |
  192. $(objpath)\strlist.obj : $(rarpath)\strlist.cpp
  193. $(cc) -q @&&|
  194. $(compopt) -o$@ $(rarpath)\strlist.cpp
  195. |
  196. $(objpath)\strfn.obj : $(rarpath)\strfn.cpp
  197. $(cc) -q @&&|
  198. $(compopt) -o$@ $(rarpath)\strfn.cpp
  199. |
  200. $(objpath)\pathfn.obj : $(rarpath)\pathfn.cpp
  201. $(cc) -q @&&|
  202. $(compopt) -o$@ $(rarpath)\pathfn.cpp
  203. |
  204. $(objpath)\savepos.obj : $(rarpath)\savepos.cpp
  205. $(cc) -q @&&|
  206. $(compopt) -o$@ $(rarpath)\savepos.cpp
  207. |
  208. $(objpath)\smallfn.obj : $(rarpath)\smallfn.cpp
  209. $(cc) -q @&&|
  210. $(compopt) -o$@ $(rarpath)\smallfn.cpp
  211. |
  212. $(objpath)\global.obj : $(rarpath)\global.cpp
  213. $(cc) -q @&&|
  214. $(compopt) -H- -o$@ $(rarpath)\global.cpp
  215. |
  216. $(objpath)\file.obj : $(rarpath)\file.cpp
  217. $(cc) -q @&&|
  218. $(compopt) -o$@ $(rarpath)\file.cpp
  219. |
  220. $(objpath)\filefn.obj : $(rarpath)\filefn.cpp
  221. $(cc) -q @&&|
  222. $(compopt) -o$@ $(rarpath)\filefn.cpp
  223. |
  224. $(objpath)\filestr.obj : $(rarpath)\filestr.cpp
  225. $(cc) -q @&&|
  226. $(compopt) -o$@ $(rarpath)\filestr.cpp
  227. |
  228. $(objpath)\filcreat.obj : $(rarpath)\filcreat.cpp
  229. $(cc) -q @&&|
  230. $(compopt) -o$@ $(rarpath)\filcreat.cpp
  231. |
  232. $(objpath)\sha1.obj : $(rarpath)\sha1.cpp
  233. $(cc) -q @&&|
  234. $(compopt) -o$@ $(rarpath)\sha1.cpp
  235. |
  236. $(objpath)\archive.obj : $(rarpath)\archive.cpp
  237. $(cc) -q @&&|
  238. $(compopt) -o$@ $(rarpath)\archive.cpp
  239. |
  240. $(objpath)\arcread.obj : $(rarpath)\arcread.cpp
  241. $(cc) -q @&&|
  242. $(compopt) -o$@ $(rarpath)\arcread.cpp
  243. |
  244. $(objpath)\unicode.obj : $(rarpath)\unicode.cpp
  245. $(cc) -q @&&|
  246. $(compopt) -o$@ $(rarpath)\unicode.cpp
  247. |
  248. $(objpath)\system.obj : $(rarpath)\system.cpp
  249. $(cc) -q @&&|
  250. $(compopt) -o$@ $(rarpath)\system.cpp
  251. |
  252. $(objpath)\isnt.obj : $(rarpath)\isnt.cpp
  253. $(cc) -q @&&|
  254. $(compopt) -o$@ $(rarpath)\isnt.cpp
  255. |
  256. $(objpath)\crc.obj : $(rarpath)\crc.cpp
  257. $(cc) -q @&&|
  258. $(compopt) -o$@ $(rarpath)\crc.cpp
  259. |
  260. $(objpath)\crypt.obj : $(rarpath)\crypt.cpp
  261. $(cc) -q @&&|
  262. $(compopt) -o$@ $(rarpath)\crypt.cpp
  263. |
  264. $(objpath)\rijndael.obj : $(rarpath)\rijndael.cpp
  265. $(cc) -q @&&|
  266. $(compopt) -o$@ $(rarpath)\rijndael.cpp
  267. |
  268. $(objpath)\rawread.obj : $(rarpath)\rawread.cpp
  269. $(cc) -q @&&|
  270. $(compopt) -o$@ $(rarpath)\rawread.cpp
  271. |
  272. $(objpath)\rawwrite.obj : $(rarpath)\rawwrite.cpp
  273. $(cc) -q @&&|
  274. $(compopt) -o$@ $(rarpath)\rawwrite.cpp
  275. |
  276. $(objpath)\encname.obj : $(rarpath)\encname.cpp
  277. $(cc) -q @&&|
  278. $(compopt) -o$@ $(rarpath)\encname.cpp
  279. |
  280. $(objpath)\resource.obj : $(rarpath)\resource.cpp
  281. $(cc) -q @&&|
  282. $(compopt) -o$@ $(rarpath)\resource.cpp
  283. |
  284. $(objpath)\match.obj : $(rarpath)\match.cpp
  285. $(cc) -q @&&|
  286. $(compopt) -o$@ $(rarpath)\match.cpp
  287. |
  288. $(objpath)\find.obj : $(rarpath)\find.cpp
  289. $(cc) -q @&&|
  290. $(compopt) -o$@ $(rarpath)\find.cpp
  291. |
  292. $(objpath)\scantree.obj : $(rarpath)\scantree.cpp
  293. $(cc) -q @&&|
  294. $(compopt) -o$@ $(rarpath)\scantree.cpp
  295. |
  296. $(objpath)\timefn.obj : $(rarpath)\timefn.cpp
  297. $(cc) -q @&&|
  298. $(compopt) -o$@ $(rarpath)\timefn.cpp
  299. |
  300. $(objpath)\getbits.obj : $(rarpath)\getbits.cpp
  301. $(cc) -q @&&|
  302. $(compopt) -o$@ $(rarpath)\getbits.cpp
  303. |
  304. $(objpath)\rarvm.obj : $(rarpath)\rarvm.cpp
  305. $(cc) -q @&&|
  306. $(compopt) -o$@ $(rarpath)\rarvm.cpp
  307. |
  308. $(objpath)\putbits.obj : $(rarpath)\putbits.cpp
  309. $(cc) -q @&&|
  310. $(compopt) -o$@ $(rarpath)\putbits.cpp
  311. |
  312. $(objpath)\pack.obj : $(rarpath)\pack.cpp
  313. $(cc) -q @&&|
  314. $(compopt) -o$@ $(rarpath)\pack.cpp
  315. |
  316. $(objpath)\packbord.obj : $(rarpath)\packbord.cpp
  317. $(cc) -q @&&|
  318. $(compopt) -o$@ $(rarpath)\packbord.cpp
  319. |
  320. $(objpath)\packanlz.obj : $(rarpath)\packanlz.cpp
  321. $(cc) -q @&&|
  322. $(compopt) -o$@ $(rarpath)\packanlz.cpp
  323. |
  324. $(objpath)\cblock.obj : $(rarpath)\cblock.cpp
  325. $(cc) -q @&&|
  326. $(compopt) -o$@ $(rarpath)\cblock.cpp
  327. |
  328. $(objpath)\add.obj : $(rarpath)\add.cpp
  329. $(cc) -q @&&|
  330. $(compopt) -o$@ $(rarpath)\add.cpp
  331. |
  332. $(objpath)\addlist.obj : $(rarpath)\addlist.cpp
  333. $(cc) -q @&&|
  334. $(compopt) -o$@ $(rarpath)\addlist.cpp
  335. |
  336. $(objpath)\procarc.obj : $(rarpath)\procarc.cpp
  337. $(cc) -q @&&|
  338. $(compopt) -o$@ $(rarpath)\procarc.cpp
  339. |
  340. $(objpath)\sfx.obj : $(rarpath)\sfx.cpp
  341. $(cc) -q @&&|
  342. $(compopt) -o$@ $(rarpath)\sfx.cpp
  343. |
  344. $(objpath)\comment.obj : $(rarpath)\comment.cpp
  345. $(cc) -q @&&|
  346. $(compopt) -o$@ $(rarpath)\comment.cpp
  347. |
  348. $(objpath)\rs.obj : $(rarpath)\rs.cpp
  349. $(cc) -q @&&|
  350. $(compopt) -o$@ $(rarpath)\rs.cpp
  351. |
  352. $(objpath)\recvol.obj : $(rarpath)\recvol.cpp
  353. $(cc) -q @&&|
  354. $(compopt) -o$@ $(rarpath)\recvol.cpp
  355. |
  356. $(objpath)\repair.obj : $(rarpath)\repair.cpp
  357. $(cc) -q @&&|
  358. $(compopt) -o$@ $(rarpath)\repair.cpp
  359. |
  360. $(objpath)\rdwrfn.obj : $(rarpath)\rdwrfn.cpp
  361. $(cc) -q @&&|
  362. $(compopt) -o$@ $(rarpath)\rdwrfn.cpp
  363. |
  364. $(objpath)\consio.obj : $(rarpath)\consio.cpp
  365. $(cc) -q @&&|
  366. $(compopt) -o$@ $(rarpath)\consio.cpp
  367. |
  368. $(objpath)\cmddata.obj : $(rarpath)\cmddata.cpp
  369. $(cc) -q @&&|
  370. $(compopt) -o$@ $(rarpath)\cmddata.cpp
  371. |
  372. $(objpath)\options.obj : $(rarpath)\options.cpp
  373. $(cc) -q @&&|
  374. $(compopt) -o$@ $(rarpath)\options.cpp
  375. |
  376. $(objpath)\ulinks.obj : $(rarpath)\ulinks.cpp
  377. $(cc) -q @&&|
  378. $(compopt) -o$@ $(rarpath)\ulinks.cpp
  379. |
  380. $(objpath)\errhnd.obj : $(rarpath)\errhnd.cpp
  381. $(cc) -q @&&|
  382. $(compopt) -o$@ $(rarpath)\errhnd.cpp
  383. |
  384. $(objpath)\volume.obj : $(rarpath)\volume.cpp
  385. $(cc) -q @&&|
  386. $(compopt) -o$@ $(rarpath)\volume.cpp
  387. |
  388. $(objpath)\extinfo.obj : $(rarpath)\extinfo.cpp
  389. $(cc) -q @&&|
  390. $(compopt) -o$@ $(rarpath)\extinfo.cpp
  391. |
  392. $(objpath)\extract.obj : $(rarpath)\extract.cpp
  393. $(cc) -q @&&|
  394. $(compopt) -o$@ $(rarpath)\extract.cpp
  395. |
  396. $(objpath)\list.obj : $(rarpath)\list.cpp
  397. $(cc) -q @&&|
  398. $(compopt) -o$@ $(rarpath)\list.cpp
  399. |
  400. $(objpath)\rtl.obj : $(rarpath)\rtl.cpp
  401. $(cc) -q @&&|
  402. $(compopt) -o$@ $(rarpath)\rtl.cpp
  403. |
  404. $(objpath)\unpack.obj : $(rarpath)\unpack.cpp
  405. $(cc) -q @&&|
  406. $(compopt) -o$@ $(rarpath)\unpack.cpp
  407. |
  408. $(objpath)\dll.obj : $(rarpath)\dll.cpp
  409. $(cc) -q @&&|
  410. $(compopt) -o$@ $(rarpath)\dll.cpp
  411. |