Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

308 lines
6.5 KiB

  1. BASE =avifile
  2. !if "$(WIN32)" == "TRUE"
  3. NAME =avifil32
  4. !else
  5. NAME =$(BASE)
  6. !endif
  7. EXT =dll
  8. ROOT =..\..\..
  9. OBJ1 =avilib.obj avilibcf.obj classobj.obj device.obj avifile.obj extra.obj
  10. OBJ2 =avisave.obj aviopts.obj avicmprs.obj avifps.obj getframe.obj aviidx.obj acmcmprs.obj
  11. OBJ3 =fileshar.obj wavefile.obj
  12. OBJ4 =buffer.obj fakefile.obj avimem.obj unmarsh.obj afclip.obj enumfetc.obj editstrm.obj avigraph.obj
  13. !if "$(WIN32)" == "TRUE"
  14. OBJA =disk32.obj directio.obj
  15. LIBS =kernel32.lib user32.lib crtdll.lib gdi32.lib comctl32.lib shell32.lib comdlg32.lib winmm.lib advapi32.lib msvfw32.lib msacm32.lib uuid.lib
  16. !else
  17. OBJA =rlea.obj muldiv32.obj memcopy.obj compobj.obj
  18. LIBS =mdllcew shell libw mmsystem msvideo commdlg msacm
  19. !endif
  20. OBJS =$(OBJA) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  21. GOALS =$(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym $(PLIB)\$(NAME).lib $(PINC)\$(BASE).h $(PINC)\aviiface.h
  22. !if "$(DEBUG)" == "retail"
  23. DEF =
  24. CDEBUG =$(DEF)
  25. L32DEBUG=-debug:none
  26. L16DEBUG=
  27. RDEBUG =
  28. ADEBUG =$(DEF)
  29. !else
  30. !if "$(DEBUG)" == "debug"
  31. DEF =-DDEBUG_RETAIL
  32. CDEBUG =$(DEF)
  33. L32DEBUG=-debug:none
  34. L16DEBUG=/LI
  35. RDEBUG =-v $(DEF)
  36. ADEBUG =$(DEF)
  37. !else
  38. DEF =-DDEBUG
  39. CDEBUG =$(DEF)
  40. L32DEBUG=-debug:full -debugtype:cv
  41. L16DEBUG=/CO/LI
  42. RDEBUG =-v $(DEF)
  43. ADEBUG =-Zi $(DEF)
  44. !endif
  45. !endif
  46. !if "$(WIN32)" == "TRUE"
  47. CFLAGS =-Oxs -D_X86_ $(CDEBUG) -Fo$@ -DCHICAGO -DUSE_DIRECTIO -DSHELLOLE
  48. L32FLAGS=$(L32DEBUG)
  49. RCFLAGS =$(RDEBUG)
  50. IS_32 =TRUE
  51. WANT_C932=TRUE
  52. OS =i386
  53. LB =lib # Don't want c816 lib
  54. !else
  55. CFLAGS =-Gs -GA -GEd -AMw -Oxwti $(CDEBUG) -Fo$@ -DCHICAGO -DSHELLOLE
  56. L16FLAGS=/AL:16/ONERROR:NOEXE$(L16DEBUG)
  57. RCFLAGS =-z $(RDEBUG)
  58. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  59. IS_16 =TRUE
  60. !endif
  61. IS_OEM =TRUE
  62. !include $(ROOT)\build\project.mk
  63. compobj.obj: ..\..\$$(@B).cpp
  64. !if "$(WIN32)" != "TRUE"
  65. @$(CL) @<<
  66. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  67. <<
  68. !endif
  69. disk32.obj: ..\..\$$(@B).c ..\..\disk32.h
  70. !if "$(WIN32)" != "TRUE"
  71. @$(CL) @<<
  72. $(CFLAGS) -NT _TEXT ..\..\$(@B).c
  73. <<
  74. !else
  75. $(CL) @<<
  76. $(CFLAGS) -Fc ..\..\$(@B).c
  77. <<
  78. !endif
  79. classobj.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h ..\..\avifps.h
  80. !if "$(WIN32)" != "TRUE"
  81. @$(CL) @<<
  82. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  83. <<
  84. !endif
  85. getframe.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  86. !if "$(WIN32)" != "TRUE"
  87. @$(CL) @<<
  88. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  89. <<
  90. !endif
  91. avilib.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h ..\..\avireg.h
  92. !if "$(WIN32)" != "TRUE"
  93. @$(CL) @<<
  94. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  95. <<
  96. !endif
  97. avilibcf.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  98. !if "$(WIN32)" != "TRUE"
  99. @$(CL) @<<
  100. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  101. <<
  102. !endif
  103. device.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  104. !if "$(WIN32)" != "TRUE"
  105. @$(CL) @<<
  106. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  107. <<
  108. !endif
  109. $(BASE).obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  110. !if "$(WIN32)" != "TRUE"
  111. @$(CL) @<<
  112. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  113. <<
  114. !endif
  115. extra.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  116. !if "$(WIN32)" != "TRUE"
  117. @$(CL) @<<
  118. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  119. <<
  120. !endif
  121. fileshar.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  122. !if "$(WIN32)" != "TRUE"
  123. @$(CL) @<<
  124. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  125. <<
  126. !endif
  127. avisave.obj: ..\..\$$(@B).c ..\..\$(BASE).h
  128. !if "$(WIN32)" != "TRUE"
  129. @$(CL) @<<
  130. $(CFLAGS) -NT _SAVE ..\..\$(@B).c
  131. <<
  132. !endif
  133. wavefile.obj: ..\..\$$(@B).c ..\..\$(BASE).h
  134. !if "$(WIN32)" != "TRUE"
  135. @$(CL) @<<
  136. $(CFLAGS) -NT _WAVE ..\..\$(@B).c
  137. <<
  138. !endif
  139. aviopts.obj: ..\..\$$(@B).c ..\..\$(BASE).h
  140. !if "$(WIN32)" != "TRUE"
  141. @$(CL) @<<
  142. $(CFLAGS) -NT _OPTIONS ..\..\$(@B).c
  143. <<
  144. !endif
  145. avicmprs.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  146. !if "$(WIN32)" != "TRUE"
  147. @$(CL) @<<
  148. $(CFLAGS) -NT _SAVE ..\..\$(@B).cpp
  149. <<
  150. !endif
  151. acmcmprs.obj: ..\..\$$(@B).cpp ..\..\acmcmprs.h ..\..\$(BASE).h
  152. !if "$(WIN32)" != "TRUE"
  153. @$(CL) @<<
  154. $(CFLAGS) -NT _SAVE ..\..\$(@B).cpp
  155. <<
  156. !endif
  157. avigraph.obj: ..\..\$$(@B).c ..\..\$(BASE).h
  158. !if "$(WIN32)" != "TRUE"
  159. @$(CL) @<<
  160. $(CFLAGS) -NT _SAVE ..\..\$(@B).c
  161. <<
  162. !endif
  163. avifps.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h ..\..\avifps.h
  164. !if "$(WIN32)" != "TRUE"
  165. @$(CL) @<<
  166. $(CFLAGS) -NT _CLIP ..\..\$(@B).cpp
  167. <<
  168. !endif
  169. buffer.obj: ..\..\$$(@B).c ..\..\$(BASE).h
  170. !if "$(WIN32)" != "TRUE"
  171. @$(CL) @<<
  172. $(CFLAGS) -Fc -NT _TEXT ..\..\$(@B).c
  173. <<
  174. !endif
  175. fakefile.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  176. !if "$(WIN32)" != "TRUE"
  177. @$(CL) @<<
  178. $(CFLAGS) -NT _CLIP ..\..\$(@B).cpp
  179. <<
  180. !endif
  181. avimem.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  182. !if "$(WIN32)" != "TRUE"
  183. @$(CL) @<<
  184. $(CFLAGS) -NT _CLIP ..\..\$(@B).cpp
  185. <<
  186. !endif
  187. unmarsh.obj: ..\..\$$(@B).cpp ..\..\$(BASE).h
  188. !if "$(WIN32)" != "TRUE"
  189. @$(CL) @<<
  190. $(CFLAGS) -NT _CLIP ..\..\$(@B).cpp
  191. <<
  192. !endif
  193. enumfetc.obj: ..\..\$$(@B).c
  194. !if "$(WIN32)" != "TRUE"
  195. @$(CL) @<<
  196. $(CFLAGS) -NT _CLIP ..\..\$(@B).c
  197. <<
  198. !endif
  199. afclip.obj: ..\..\$$(@B).c
  200. !if "$(WIN32)" != "TRUE"
  201. @$(CL) @<<
  202. $(CFLAGS) -NT _CLIP ..\..\$(@B).c
  203. <<
  204. !endif
  205. editstrm.obj: ..\..\$$(@B).cpp ..\..\$$(@B).h
  206. !if "$(WIN32)" != "TRUE"
  207. @$(CL) @<<
  208. $(CFLAGS) -NT _CLIP ..\..\$(@B).cpp
  209. <<
  210. !endif
  211. aviidx.obj: ..\..\$$(@B).cpp ..\..\$$(@B).h
  212. !if "$(WIN32)" != "TRUE"
  213. @$(CL) @<<
  214. $(CFLAGS) -NT _TEXT ..\..\$(@B).cpp
  215. <<
  216. !endif
  217. !if "$(WIN32)" != "TRUE"
  218. ole2stub.obj: ..\..\$$(@B).asm
  219. @echo $(@B).asm
  220. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT ..\..\$(@B),$@;
  221. muldiv32.obj: ..\..\$$(@B).asm
  222. @echo $(@B).asm
  223. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT ..\..\$(@B),$@;
  224. rlea.obj: ..\..\$$(@B).asm
  225. @echo $(@B).asm
  226. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT ..\..\$(@B),$@;
  227. memcopy.obj: ..\..\$$(@B).asm
  228. @echo $(@B).asm
  229. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT ..\..\$(@B),$@;
  230. !endif
  231. $(BASE).res: \
  232. ..\..\$(BASE).rc ..\..\$(BASE).rcv ..\..\$(BASE).h \
  233. $(PVER)\verinfo.h $(PVER)\verinfo.ver ..\..\aviopts.dlg
  234. @$(RC) $(RCFLAGS) -fo$@ -I$(PVER) ..\..\$(@B).rc
  235. !if "$(WIN32)" == "TRUE"
  236. $(NAME).lib $(NAME).$(EXT) $(NAME).map: \
  237. $(OBJS) $(BASE).res ..\..\$(NAME).def $(PINC)\coffbase.txt
  238. @$(LINK32) $(L32FLAGS) @<<
  239. -merge:.rdata=.text
  240. -merge:.bss=.data
  241. -out:$(@B).$(EXT)
  242. -machine:$(OS)
  243. -subsystem:windows,4.0
  244. -base:@$(PINC)\coffbase.txt,$(NAME)
  245. -map:$(@B).map
  246. -def:..\..\$(NAME).def
  247. -dll
  248. -entry:DLLEntryPoint@12
  249. -implib:$(@B).lib
  250. $(BASE).res
  251. $(OBJA)
  252. $(OBJ1)
  253. $(OBJ2)
  254. $(OBJ3)
  255. $(OBJ4)
  256. $(LIBS)
  257. <<
  258. !else
  259. $(NAME).$(EXT) $(NAME).map: \
  260. $(OBJS) ..\..\$$(@B).def $(BASE).res
  261. @$(LINK16) $(L16FLAGS) @<<
  262. $(OBJA)+
  263. $(OBJ1)+
  264. $(OBJ2)+
  265. $(OBJ3)+
  266. $(OBJ4),
  267. $(@B).$(EXT),
  268. $(@B).map,
  269. $(LIBS),
  270. ..\..\$(@B).def
  271. <<
  272. @$(RC) $(RESFLAGS) $(BASE).res $*.$(EXT)
  273. !endif