Source code of Windows XP (NT5)
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.

183 lines
4.5 KiB

  1. #
  2. # Copyright (C) Microsoft Corporation 1990-1993. All Rights reserved.
  3. #
  4. # goal Create executables (default).
  5. # clean Remove all files created by any goal.
  6. #
  7. # DEBUG =YES Create debug version and define "DEBUG" (default).
  8. # =NO Create non-debug version.
  9. # STRICT =YES Define STRICT
  10. # = No strict definition (default).
  11. !if "$(NTMAKEENV)" != ""
  12. !INCLUDE $(NTMAKEENV)\makefile.def
  13. ####!error Use BUILD on NT environment!
  14. !else
  15. NAME =mciavi
  16. EXT =drv
  17. ROOT =..
  18. PBIN =$(ROOT)\bin
  19. PLIB =$(ROOT)\lib
  20. PINC =$(ROOT)\inc
  21. PVER =$(ROOT)\verinfo\$(LANG)
  22. LOBJ =$(OS)\$(LANG)
  23. LRES =res\$(LANG)
  24. OBJ1 =$(LOBJ)\libinit.obj $(LOBJ)\graphic.obj $(LOBJ)\window.obj $(LOBJ)\device.obj $(LOBJ)\drvproc.obj $(LOBJ)\math.obj
  25. OBJ2 =$(LOBJ)\common.obj $(LOBJ)\playrle.obj $(LOBJ)\rlea.obj $(LOBJ)\config.obj $(LOBJ)\avitask.obj $(LOBJ)\avidraw.obj $(LOBJ)\ole2nlss.obj
  26. OBJ3 =$(LOBJ)\avisound.obj $(LOBJ)\aviplay.obj $(LOBJ)\aviopen.obj $(LOBJ)\drawproc.obj $(LOBJ)\fullproc.obj
  27. OBJS =$(OBJ1) $(OBJ2) $(OBJ3)
  28. GOALS =$(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym $(PINC)\$(NAME).h $(PINC)\aviffmt.h
  29. LIBS =libw mdllcew mmsystem msvideo
  30. !if "$(DEBUG)" == "NO"
  31. DEF =
  32. CDEBUG =
  33. L16DEBUG=
  34. RDEBUG =
  35. ADEBUG =
  36. !else
  37. !if "$(DEBUG)" == "RETAIL"
  38. DEF =-DDEBUG_RETAIL
  39. CDEBUG =-Zd $(DEF)
  40. L16DEBUG=/LI
  41. RDEBUG =-v $(DEF)
  42. ADEBUG =$(DEF)
  43. OBJD =
  44. !else
  45. DEF =-DDEBUG
  46. CDEBUG =-Zid $(DEF)
  47. L16DEBUG=/CO/LI
  48. RDEBUG =-v $(DEF)
  49. ADEBUG =-Zi $(DEF)
  50. !endif
  51. !endif
  52. !if "$(STRICT)" == "YES"
  53. TYPES =-DSTRICT
  54. !else
  55. TYPES =
  56. !endif
  57. CFLAGS =-DALTVFW -DWIN16 -DWIN31 -Alnw -Oxzw $(TYPES) $(CDEBUG) -I$(LRES) -Fc$*.cod -Fd$* -Fo$@ -DWINVER=0x30a
  58. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  59. L16FLAGS=/ONERROR:NOEXE$(L16DEBUG)
  60. RCFLAGS =-DALTVFW $(RDEBUG)
  61. MFLAGS =-n
  62. IS_16 =TRUE
  63. IS_OEM =TRUE
  64. # WANT_286 =1
  65. !include $(ROOT)\build\project.mk
  66. ## !!!! CFLAGS = $(CFLAGS) -G3
  67. $(LOBJ)\libinit.obj: $$(@B).asm
  68. @echo $(@B).asm
  69. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  70. $(LOBJ)\math.obj: $$(@B).asm
  71. @echo $(@B).asm
  72. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  73. $(LOBJ)\hmemcpy.obj: $$(@B).asm
  74. @echo $(@B).asm
  75. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  76. $(LOBJ)\rlea.obj: $$(@B).asm
  77. @echo $(@B).asm
  78. @$(ASM) $(AFLAGS) -DSEGNAME=RLE $(@B),$@;
  79. $(LOBJ)\ole2nlss.obj: $$(@B).asm
  80. @echo $(@B).asm
  81. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  82. $(LOBJ)\aviopen.obj: $$(@B).c nocrap.h gmem.h common.h ntaviprt.h playrle.h rlec.h avitask.h aviffmt.h oldavift.h
  83. @$(CL) @<<
  84. $(CFLAGS) -NT OPEN $(@B).c
  85. <<
  86. $(LOBJ)\graphic.obj: $$(@B).c nocrap.h ntaviprt.h common.h graphic.h mciavi.h cnfgdlg.h aviffmt.h
  87. @$(CL) @<<
  88. $(CFLAGS) -NT _TEXT $(@B).c
  89. <<
  90. $(LOBJ)\window.obj: $$(@B).c ntaviprt.h common.h graphic.h mciavi.h aviffmt.h
  91. @$(CL) @<<
  92. $(CFLAGS) -NT _TEXT $(@B).c
  93. <<
  94. $(LOBJ)\device.obj: $$(@B).c nocrap.h ntaviprt.h common.h graphic.h mciavi.h avitask.h gmem.h aviffmt.h
  95. @$(CL) @<<
  96. $(CFLAGS) -NT _TEXT $(@B).c
  97. <<
  98. $(LOBJ)\drvproc.obj: $$(@B).c ntaviprt.h common.h graphic.h mciavi.h cnfgdlg.h aviffmt.h
  99. @$(CL) @<<
  100. $(CFLAGS) -NT _TEXT $(@B).c
  101. <<
  102. $(LOBJ)\config.obj: $$(@B).c ntaviprt.h common.h graphic.h mciavi.h cnfgdlg.h aviffmt.h
  103. @$(CL) @<<
  104. $(CFLAGS) -NT CONFIG $(@B).c
  105. <<
  106. $(LOBJ)\avitask.obj: $$(@B).c nocrap.h gmem.h ntaviprt.h common.h graphic.h mciavi.h avitask.h aviffmt.h oldavift.h
  107. @$(CL) @<<
  108. $(CFLAGS) -NT _TEXT $(@B).c
  109. <<
  110. $(LOBJ)\avidraw.obj: $$(@B).c nocrap.h gmem.h common.h ntaviprt.h graphic.h mciavi.h playrle.h rlec.h avitask.h aviffmt.h oldavift.h
  111. @$(CL) @<<
  112. $(CFLAGS) -NT _TEXT $(@B).c
  113. <<
  114. $(LOBJ)\avisound.obj: $$(@B).c nocrap.h gmem.h common.h ntaviprt.h graphic.h mciavi.h avitask.h aviffmt.h oldavift.h
  115. @$(CL) @<<
  116. $(CFLAGS) -NT _TEXT $(@B).c
  117. <<
  118. $(LOBJ)\aviplay.obj: $$(@B).c nocrap.h gmem.h common.h ntaviprt.h graphic.h mciavi.h playrle.h rlec.h avitask.h aviffmt.h oldavift.h
  119. @$(CL) @<<
  120. $(CFLAGS) -NT _TEXT $(@B).c
  121. <<
  122. $(LOBJ)\common.obj: $$(@B).c ntaviprt.h common.h
  123. @$(CL) @<<
  124. $(CFLAGS) -NT _TEXT $(@B).c
  125. <<
  126. $(LOBJ)\playrle.obj: $$(@B).c ntaviprt.h gmem.h playrle.h
  127. @$(CL) @<<
  128. $(CFLAGS) -NT RLE $(@B).c
  129. <<
  130. $(LOBJ)\drawproc.obj: $$(@B).c
  131. @$(CL) @<<
  132. $(CFLAGS) -NT _TEXT $(@B).c
  133. <<
  134. $(LOBJ)\fullproc.obj: $$(@B).c
  135. @$(CL) @<<
  136. $(CFLAGS) -NT _TEXT $(@B).c
  137. <<
  138. $(LOBJ)\$(NAME).res: $(LRES)\$$(@B).rc $(LRES)\$$(@B).rcv \
  139. graphic.h $(NAME).h cnfgdlg.h $(LRES)\cnfgdlg.dlg \
  140. $(PVER)\verinfo.h $(PVER)\verinfo.ver
  141. @$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
  142. $(LOBJ)\$(NAME).$(EXT) $(LOBJ)\$(NAME).map: \
  143. $(OBJS) $$(@B).def $$(@R).res
  144. @$(LINK16) @<<
  145. $(OBJ1)+
  146. $(OBJ2)+
  147. $(OBJ3),
  148. $(@R).$(EXT) $(L16FLAGS),
  149. $(@R).map,
  150. $(LIBS),
  151. $(@B).def
  152. <<
  153. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)
  154. !endif