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.

135 lines
3.1 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. LRES =.
  12. ROOT =\nt\private\windows\media\avi
  13. NAME =msvideo
  14. EXT =dll
  15. ROOT =..
  16. PBIN =$(ROOT)\bin
  17. PLIB =$(ROOT)\lib
  18. PINC =$(ROOT)\inc
  19. PVER =$(ROOT)\verinfo\$(LANG)
  20. OBJS =$(LOBJ)\libentry.obj $(LOBJ)\video.obj $(LOBJ)\dpmipage.obj $(LOBJ)\init.obj $(LOBJ)\thunk16.obj
  21. GOALS =$(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym x.lib $(PINC)\$(NAME).h $(PINC)\msviddrv.h
  22. LIBS =libw mdllcew mmsystem $(PLIB)\compman shell $(PLIB)\drawdib $(PLIB)\mciwnd
  23. !if "$(NTDEBUG)" == ""
  24. DEF =
  25. CDEBUG =
  26. L16DEBUG=
  27. RDEBUG =
  28. ADEBUG =
  29. DEBUG =RETAIL
  30. LOBJ =retail
  31. !else
  32. DEF =-DDEBUG
  33. CDEBUG =-Zid $(DEF)
  34. L16DEBUG=/CO/LI
  35. RDEBUG =-v $(DEF)
  36. ADEBUG =-Zi $(DEF)
  37. DEBUG =DEBUG
  38. LOBJ =debug
  39. !endif
  40. !if "$(STRICT)" == "YES"
  41. TYPES =-DSTRICT
  42. !else
  43. TYPES =
  44. !endif
  45. CFLAGS =-DBUILDDLL -DALTVFW -DWIN16 -DWIN31 -Alnw -Oxwt $(TYPES) $(CDEBUG) -I$(LRES) -Fd$* -Fo$@ -Fc
  46. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  47. L16FLAGS=/AL:16/ONERROR:NOEXE$(L16DEBUG)
  48. RCFLAGS =-DALTVFW $(RDEBUG)
  49. MFLAGS =-n
  50. IS_16 =TRUE
  51. IS_SDK =TRUE
  52. WANT_286 =TRUE
  53. IS_PRIVATE =TRUE # temporaray until shlobj.h is added to sdk
  54. !include $(ROOT)\bin.16\project.mk
  55. $(NAME).rc: res\usa\$(NAME).rc
  56. copy res\usa
  57. $(LOBJ)\libentry.obj: $$(@B).asm
  58. @echo $(@B).asm
  59. @$(ASM) $(AFLAGS) -DSEGNAME=INIT $(@B),$@;
  60. $(LOBJ)\debug.obj: $$(@B).asm
  61. @echo $(@B).asm
  62. @$(ASM) $(AFLAGS) -DSEGNAME=MSVIDEO $(@B),$@;
  63. $(LOBJ)\dpmipage.obj: $$(@B).asm
  64. @echo $(@B).asm
  65. @$(ASM) $(AFLAGS) -I$(DEVROOT)\ddk\inc $(@B),$@;
  66. $(LOBJ)\init.obj: $$(@B).c $(NAME).h msviddrv.h msvideoi.h $(PVER)\verinfo.h
  67. @$(CL) @<<
  68. $(CFLAGS) -I$(PVER) -NT INIT $(@B).c
  69. <<
  70. $(LOBJ)\thunk16.obj: $$(@B).c $(NAME).h msviddrv.h msvideoi.h $(PVER)\verinfo.h vidthunk.h
  71. @$(CL) @<<
  72. $(CFLAGS) -I$(PVER) -NT thunks $(@B).c
  73. <<
  74. $(LOBJ)\video.obj: $$(@B).c $(NAME).h msviddrv.h msvideoi.h
  75. @$(CL) @<<
  76. $(CFLAGS) -NT MSVIDEO $(@B).c
  77. <<
  78. $(LOBJ)\$(NAME).res: \
  79. $(LRES)\$$(@B).rc \
  80. $(LRES)\$$(@B).rcv \
  81. $(NAME).h \
  82. $(PVER)\verinfo.h \
  83. $(PVER)\verinfo.ver \
  84. $(PINC)\icm.rc
  85. @$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
  86. $(LOBJ)\$(NAME).$(EXT) $(LOBJ)\$(NAME).map: \
  87. $(OBJS) $$(@B).def $$(@R).res \
  88. $(PLIB)\compman.lib \
  89. $(PLIB)\drawdib.lib \
  90. $(PLIB)\mciwnd.lib
  91. @$(LINK16) @<<
  92. $(OBJS),
  93. $(@R).$(EXT) $(L16FLAGS),
  94. $(@R).map,
  95. $(LIBS),
  96. $(@B).def
  97. <<
  98. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)
  99. @mkpublic $(NAME).def $(NAME)
  100. @implib $(NAME).lib $(NAME)
  101. $(MAPSYM) $(MFLAGS) -mo $*.sym $*.map
  102. $(NAME).map: $(LOBJ)\$(NAME).map
  103. copy $(LOBJ)\$(NAME).map
  104. $(NAME).$(EXT): $(LOBJ)\$(NAME).$(EXT)
  105. copy $(LOBJ)\$(NAME).$(EXT)
  106. $(PINC)\msvideo.h: msvideo.h
  107. @copy $(@F) $@
  108. $(PINC)\msviddrv.h: msviddrv.h
  109. @copy $(@F) $@
  110. x.lib:
  111. @copy $(NAME).lib $(PINC)\$(NAME).lib