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.

217 lines
4.5 KiB

  1. #
  2. # Copyright (C) Microsoft Corporation 1993. All Rights reserved.
  3. #
  4. LRES =.
  5. ROOT =\nt\private\windows\media\avi
  6. NAME =avifile
  7. EXT =dll
  8. OBJ1 =$(LOBJ)\avilib.obj $(LOBJ)\avilibcf.obj $(LOBJ)\classobj.obj $(LOBJ)\device.obj $(LOBJ)\avifile.obj $(LOBJ)\extra.obj
  9. OBJ2 =$(LOBJ)\avisave.obj $(LOBJ)\aviopts.obj $(LOBJ)\avicmprs.obj $(LOBJ)\avifps.obj $(LOBJ)\getframe.obj $(LOBJ)\aviidx.obj
  10. OBJ3 =$(LOBJ)\muldiv32.obj $(LOBJ)\memcopy.obj $(LOBJ)\ole2stub.obj $(LOBJ)\fileshar.obj
  11. OBJ4 =$(LOBJ)\buffer.obj $(LOBJ)\fakefile.obj $(LOBJ)\avimem.obj $(LOBJ)\unmarsh.obj $(LOBJ)\afclip.obj $(LOBJ)\enumfetc.obj $(LOBJ)\editstrm.obj $(LOBJ)\avigraph.obj
  12. OBJS =$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  13. GOALS =$(NAME).rc $(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym $(PBIN)\$(NAME).reg
  14. LIBS =mdllcew shell libw mmsystem vfw commdlg compobj msacm ole2
  15. #
  16. # has to be 286 for risc-based emulator
  17. #
  18. WANT_286=1
  19. !if "$(NTDEBUG)" == ""
  20. DEF =
  21. CDEBUG =
  22. L16DEBUG=
  23. RDEBUG =
  24. ADEBUG =$(DEF)
  25. DEBUG =RETAIL
  26. LOBJ =retail
  27. !else
  28. DEBUG =DEBUG
  29. DEF =-DDEBUG
  30. CDEBUG =-Zid $(DEF)
  31. L16DEBUG=/CO/LI
  32. RDEBUG =-v $(DEF)
  33. ADEBUG =-Zi $(DEF)
  34. LOBJ =debug
  35. !endif
  36. !if "$(STRICT)" == "YES"
  37. TYPES =-DSTRICT
  38. !else
  39. TYPES =
  40. !endif
  41. CFLAGS =-GA -GEd -DWINDLL -D_WINDLL -AMw -Oxwti $(TYPES) $(CDEBUG) -I$(LRES) -Fd$* -Fo$@ -Fc$* -DWINVER=0x030a
  42. L16FLAGS=/AL:16/ONERROR:NOEXE$(L16DEBUG)
  43. RCFLAGS =$(RDEBUG)
  44. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  45. IS_16 =TRUE
  46. ## IS_32 =TRUE
  47. IS_OEM =TRUE
  48. !include $(ROOT)\bin.16\project.mk
  49. $(NAME).rc: res\usa\$(NAME).rc
  50. copy res\usa
  51. $(PBIN)\$(NAME).reg: $(NAME).reg
  52. @copy $(@F) $@
  53. $(LOBJ)\classobj.obj: $$(@B).cpp $(NAME).h
  54. @$(CL) @<<
  55. $(CFLAGS) -NT _TEXT $(@B).cpp
  56. <<
  57. $(LOBJ)\getframe.obj: $$(@B).cpp $(NAME).h
  58. @$(CL) @<<
  59. $(CFLAGS) -NT _TEXT $(@B).cpp
  60. <<
  61. $(LOBJ)\avilib.obj: $$(@B).cpp $(NAME).h avireg.h
  62. @$(CL) @<<
  63. $(CFLAGS) -NT _TEXT $(@B).cpp
  64. <<
  65. $(LOBJ)\avilibcf.obj: $$(@B).cpp $(NAME).h
  66. @$(CL) @<<
  67. $(CFLAGS) -NT _TEXT $(@B).cpp
  68. <<
  69. $(LOBJ)\device.obj: $$(@B).cpp $(NAME).h
  70. @$(CL) @<<
  71. $(CFLAGS) -NT _TEXT $(@B).cpp
  72. <<
  73. $(LOBJ)\avifile.obj: $$(@B).cpp $(NAME).h
  74. @$(CL) @<<
  75. $(CFLAGS) -NT _TEXT $(@B).cpp
  76. <<
  77. $(LOBJ)\extra.obj: $$(@B).cpp $(NAME).h
  78. @$(CL) @<<
  79. $(CFLAGS) -NT _TEXT $(@B).cpp
  80. <<
  81. $(LOBJ)\fileshar.obj: $$(@B).c $(NAME).h
  82. @$(CL) @<<
  83. $(CFLAGS) -NT _TEXT $(@B).c
  84. <<
  85. $(LOBJ)\avisave.obj: $$(@B).c $(NAME).h
  86. @$(CL) @<<
  87. $(CFLAGS) -NT _SAVE $(@B).c
  88. <<
  89. $(LOBJ)\aviopts.obj: $$(@B).c $(NAME).h
  90. @$(CL) @<<
  91. $(CFLAGS) -NT _OPTIONS $(@B).c
  92. <<
  93. $(LOBJ)\avicmprs.obj: $$(@B).cpp $(NAME).h
  94. @$(CL) @<<
  95. $(CFLAGS) -NT _SAVE $(@B).cpp
  96. <<
  97. $(LOBJ)\avigraph.obj: $$(@B).c $(NAME).h
  98. @$(CL) @<<
  99. $(CFLAGS) -NT _SAVE $(@B).c
  100. <<
  101. $(LOBJ)\ole2stub.obj: $$(@B).asm
  102. @echo $(@B).asm
  103. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  104. $(LOBJ)\muldiv32.obj: $$(@B).asm
  105. @echo $(@B).asm
  106. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  107. $(LOBJ)\rlea.obj: $$(@B).asm
  108. @echo $(@B).asm
  109. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  110. $(LOBJ)\memcopy.obj: $$(@B).asm
  111. @echo $(@B).asm
  112. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  113. $(LOBJ)\avifps.obj: $$(@B).cpp $(NAME).h
  114. @$(CL) @<<
  115. $(CFLAGS) -NT _CLIP $(@B).cpp
  116. <<
  117. $(LOBJ)\buffer.obj: $$(@B).c $(NAME).h
  118. @$(CL) @<<
  119. $(CFLAGS) -Fc -NT _TEXT $(@B).c
  120. <<
  121. $(LOBJ)\fakefile.obj: $$(@B).cpp $(NAME).h
  122. @$(CL) @<<
  123. $(CFLAGS) -NT _CLIP $(@B).cpp
  124. <<
  125. $(LOBJ)\avimem.obj: $$(@B).cpp $(NAME).h
  126. @$(CL) @<<
  127. $(CFLAGS) -NT _CLIP $(@B).cpp
  128. <<
  129. $(LOBJ)\unmarsh.obj: $$(@B).cpp $(NAME).h
  130. @$(CL) @<<
  131. $(CFLAGS) -NT _CLIP $(@B).cpp
  132. <<
  133. $(LOBJ)\enumfetc.obj: $$(@B).c
  134. @$(CL) @<<
  135. $(CFLAGS) -NT _CLIP $(@B).c
  136. <<
  137. $(LOBJ)\afclip.obj: $$(@B).c
  138. @$(CL) @<<
  139. $(CFLAGS) -NT _CLIP $(@B).c
  140. <<
  141. $(LOBJ)\editstrm.obj: $$(@B).cpp $$(@B).h
  142. @$(CL) @<<
  143. $(CFLAGS) -NT _CLIP $(@B).cpp
  144. <<
  145. $(LOBJ)\aviidx.obj: $$(@B).cpp $$(@B).h
  146. @$(CL) @<<
  147. $(CFLAGS) -NT _TEXT $(@B).cpp
  148. <<
  149. $(LOBJ)\$(NAME).res: \
  150. $(LRES)\$$(@B).rc \
  151. $(LRES)\$$(@B).rcv \
  152. $(PVER)\verinfo.h \
  153. $(PVER)\verinfo.ver \
  154. avireg.h \
  155. $(LRES)\aviopts.dlg
  156. @rc $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
  157. $(LOBJ)\$(NAME).$(EXT) $(LOBJ)\$(NAME).map: \
  158. $(OBJS) $$(@B).def $$(@R).res
  159. @$(LINK16) @<<
  160. $(OBJ1)+
  161. $(OBJ2)+
  162. $(OBJ3)+
  163. $(OBJ4),
  164. $(@R).$(EXT) $(L16FLAGS),
  165. $(@R).map,
  166. $(LIBS),
  167. $(@B).def
  168. <<
  169. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)
  170. $(NAME).map: $(LOBJ)\$(NAME).map
  171. copy $(LOBJ)\$(NAME).map
  172. $(NAME).$(EXT): $(LOBJ)\$(NAME).$(EXT)
  173. copy $(LOBJ)\$(NAME).$(EXT)
  174. docs:
  175. autodoc -x EXTERNAL -rd -o $(NAME).rtf *.c *.cpp