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.

149 lines
2.8 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. !else
  14. NAME =aviview
  15. EXT =exe
  16. ROOT =..\..
  17. PBIN =$(ROOT)\bin
  18. PLIB =$(ROOT)\lib
  19. PINC =$(ROOT)\inc
  20. PVER =$(ROOT)\verinfo\$(LANG)
  21. LOBJ =$(OS)\$(LANG)
  22. LRES =. # res\$(LANG)
  23. OBJ1 =$(LOBJ)\$(NAME).obj $(LOBJ)\audplay.obj $(LOBJ)\cdib.obj
  24. OBJ2 =$(LOBJ)\guid.obj $(LOBJ)\regobjs.obj $(LOBJ)\aviball.obj
  25. OBJ3 =$(LOBJ)\muldiv32.obj
  26. OBJ4 =$(LOBJ)\palmap.obj $(LOBJ)\dibmap.obj
  27. OBJS =$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  28. GOALS =$(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym
  29. LIBS =vfw libw mlibcew mmsystem commdlg shell compobj msacm
  30. !if "$(DEBUG)" == "NO"
  31. DEF =
  32. CDEBUG =
  33. L16DEBUG=
  34. RDEBUG =
  35. ADEBUG =
  36. !else
  37. DEF =-DDEBUG
  38. CDEBUG =-Zid $(DEF)
  39. L16DEBUG=/CO/LI
  40. RDEBUG =-v $(DEF)
  41. ADEBUG =-Zi $(DEF)
  42. !endif
  43. !if "$(STRICT)" == "YES"
  44. TYPES =-DSTRICT
  45. !else
  46. TYPES =
  47. !endif
  48. CFLAGS =-DVfW -DWIN16 -DWIN31 -DWINVER=0x30a -AM /Zp -Od /GA2 /GEs $(TYPES) $(CDEBUG) -I$(LRES) -Fd$* -Fo$@
  49. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  50. MFLAGS =-n
  51. L16FLAGS=/ONERROR:NOEXE/ALIGN:16$(L16DEBUG)
  52. RCFLAGS =-DAltVfW $(RDEBUG)
  53. IS_16 =TRUE
  54. IS_OEM =TRUE
  55. !include $(ROOT)\build\project.mk
  56. bogus:
  57. $(CL) /?
  58. $(LOBJ)\aviview.obj: $$(@B).c
  59. @$(CL) @<<
  60. $(CFLAGS) -NT _TEXT $(@B).c
  61. <<
  62. $(LOBJ)\aviball.obj: $$(@B).c
  63. @$(CL) @<<
  64. $(CFLAGS) -NT _BALL $(@B).c
  65. <<
  66. $(LOBJ)\cdib.obj: $$(@B).c
  67. @$(CL) @<<
  68. $(CFLAGS) -NT _CDIB $(@B).c
  69. <<
  70. $(LOBJ)\audplay.obj: $$(@B).c
  71. @$(CL) @<<
  72. $(CFLAGS) -NT _PLAY $(@B).c
  73. <<
  74. $(LOBJ)\guid.obj: $$(@B).c
  75. @$(CL) @<<
  76. $(CFLAGS) -NT _TEXT $(@B).c
  77. <<
  78. $(LOBJ)\regobjs.obj: $$(@B).cpp
  79. @$(CL) @<<
  80. $(CFLAGS) -NT _TEXT $(@B).cpp
  81. <<
  82. $(LOBJ)\editstrm.obj: $$(@B).c
  83. @$(CL) @<<
  84. $(CFLAGS) -NT _TEXT $(@B).c
  85. <<
  86. $(LOBJ)\dibmap.obj: $$(@B).c
  87. @$(CL) @<<
  88. $(CFLAGS) -NT _PALMAP $(@B).c
  89. <<
  90. $(LOBJ)\palmap.obj: $$(@B).c
  91. @$(CL) @<<
  92. $(CFLAGS) -NT _PALMAP $(@B).c
  93. <<
  94. $(LOBJ)\aviclip.obj: $$(@B).c
  95. @$(CL) @<<
  96. $(CFLAGS) -NT _CLIP $(@B).c
  97. <<
  98. $(LOBJ)\enumfetc.obj: $$(@B).c
  99. @$(CL) @<<
  100. $(CFLAGS) -NT _CLIP $(@B).c
  101. <<
  102. $(LOBJ)\muldiv32.obj: $$(@B).asm
  103. @echo $(@B).asm
  104. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  105. $(LOBJ)\memcopy.obj: $$(@B).asm
  106. @echo $(@B).asm
  107. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  108. $(LOBJ)\$(NAME).res: \
  109. $(LRES)\$$(@B).rc \
  110. $(PVER)\verinfo.h \
  111. $(PVER)\verinfo.ver
  112. @$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
  113. $(LOBJ)\$(NAME).$(EXT) $(LOBJ)\$(NAME).map: \
  114. $(OBJS) $$(@B).def $$(@R).res
  115. @$(LINK16) @<<
  116. $(OBJ1)+
  117. $(OBJ2)+
  118. $(OBJ3)+
  119. $(OBJ4),
  120. $(@R).$(EXT) $(L16FLAGS),
  121. $(@R).map,
  122. $(LIBS),
  123. $(@B).def
  124. <<
  125. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)
  126. !endif