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.

129 lines
2.9 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 =mciwnd
  14. EXT =lib
  15. OBJS =$(LOBJ)\mciwnd.obj $(LOBJ)\trackbar.obj $(LOBJ)\toolbar.obj $(LOBJ)\cutils.obj $(LOBJ)\bmpload.obj $(LOBJ)\muldiv32.obj $(LOBJ)\preview.obj
  16. GOALS =$(PLIB)\$(NAME).$(EXT) $(PINC)\$(NAME).h
  17. !if "$(NTDEBUG)" == ""
  18. DEF =
  19. CDEBUG =
  20. L16DEBUG=
  21. RDEBUG =
  22. ADEBUG =
  23. DEBUG =RETAIL
  24. LOBJ =retail
  25. !else
  26. DEF =-DDEBUG
  27. CDEBUG =-Zid $(DEF)
  28. L16DEBUG=/CO/LI
  29. RDEBUG =-v $(DEF)
  30. ADEBUG =-Zi $(DEF)
  31. DEBUG =DEBUG
  32. LOBJ =debug
  33. !endif
  34. !if "$(STRICT)" == "YES"
  35. TYPES =-DSTRICT
  36. !else
  37. TYPES =
  38. !endif
  39. CFLAGS =-DWIN16 -DWIN31 -DWINVER=0x30A -Asnw -Oxwti $(TYPES) $(CDEBUG) -Fo$(LOBJ)\$(@F)
  40. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  41. L16FLAGS=/ONERROR:NOEXE/ALIGN:16$(L16DEBUG)
  42. RCFLAGS =$(RDEBUG)
  43. IS_16 =TRUE
  44. IS_SDK =TRUE
  45. WANT_286 =TRUE
  46. IS_PRIVATE =TRUE # temporaray until shlobj.h is added to sdk
  47. !include $(ROOT)\bin.16\project.mk
  48. $(LOBJ)\mciwnd.obj: $$(@B).c $(NAME).h
  49. @$(CL) @<<
  50. $(CFLAGS) -NT MCIWND $(@B).c
  51. <<
  52. $(LOBJ)\muldiv32.obj: $$(@B).asm
  53. @echo $(@B).asm
  54. @$(ASM) $(AFLAGS) -DSEGNAME=_MCIWND $(@B),$@;
  55. #$(LOBJ)\muldiv32.obj: $$(@B).c $$(@B).h
  56. # @$(CL) @<<
  57. #$(CFLAGS) -NT MCIWND $(@B).c
  58. #<<
  59. $(LOBJ)\trackbar.obj: $$(@B).c $(NAME).h
  60. @$(CL) @<<
  61. $(CFLAGS) -NT MCIWND $(@B).c
  62. <<
  63. $(LOBJ)\toolbar.obj: $$(@B).c $(NAME).h
  64. @$(CL) @<<
  65. $(CFLAGS) -NT MCIWND $(@B).c
  66. <<
  67. $(LOBJ)\cutils.obj: $$(@B).c $(NAME).h
  68. @$(CL) @<<
  69. $(CFLAGS) -NT MCIWND $(@B).c
  70. <<
  71. $(LOBJ)\bmpload.obj: $$(@B).c $(NAME).h $(LOBJ)\toolbar.hex $(LOBJ)\thumb.hex
  72. @$(CL) @<<
  73. $(CFLAGS) -I$(LOBJ) -NT MCIWND $(@B).c
  74. <<
  75. $(LOBJ)\preview.obj: $$(@B).c $(NAME).h
  76. @$(CL) @<<
  77. $(CFLAGS) -NT MCIWND $(@B).c
  78. <<
  79. $(LOBJ)\toolbar.hex: $$(@B).bmp
  80. bin\dos\hex $(@B).bmp >$(LOBJ)\$(@B).hex
  81. $(LOBJ)\thumb.hex: $$(@B).bmp
  82. bin\dos\hex $(@B).bmp >$(LOBJ)\$(@B).hex
  83. movplay: makedirs $(PBIN)\movplay.exe
  84. @echo ***** Finished making $(NAME) *****
  85. $(LOBJ)\movplay.obj: movplay.c movplay.h
  86. @$(CL) @<<
  87. $(CFLAGS) $(@B).c
  88. <<
  89. $(LOBJ)\movplay.res: $(LRES)\$$(@B).rc $(LRES)\$$(@B).rcv \
  90. movplay.h mciwnd.h \
  91. $(PVER)\verinfo.h \
  92. $(PVER)\verinfo.ver
  93. @$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
  94. $(LOBJ)\movplay.exe: $$(@R).obj $$(@R).res $$(@B).def $(LOBJ)\$(NAME).$(EXT)
  95. @$(LINK16) @<<
  96. $(@R).obj,
  97. $(@R).exe $(L16FLAGS),
  98. $(@R).map,
  99. libw slibcew commdlg mmsystem shell mciwnd,
  100. $(@B).def
  101. <<
  102. @$(RC) $(RESFLAGS) $*.res $*.exe
  103. $(PINC)\$(NAME).h: $(NAME).h
  104. @copy $(@F) $@