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.

154 lines
3.7 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. #DITH =dith775
  12. DITH =dith666
  13. LRES =.
  14. ROOT =\nt\private\windows\media\avi
  15. LANG =usa
  16. NAME =drawdib
  17. EXT =lib
  18. OBJ1 =$(LOBJ)\drawdib.obj $(LOBJ)\$(DITH).obj $(LOBJ)\dither.obj $(LOBJ)\dither8.obj
  19. OBJ2 =$(LOBJ)\stretch.obj $(LOBJ)\mapa.obj $(LOBJ)\profdisp.obj $(LOBJ)\$(DITH)a.obj $(LOBJ)\lockbm.obj
  20. OBJ3 =$(LOBJ)\setdi.obj $(LOBJ)\setdi8.obj $(LOBJ)\setdi16.obj $(LOBJ)\setdi24.obj $(LOBJ)\setdi32.obj
  21. OBJS =$(OBJ1) $(OBJ2) $(OBJ3) dcilib.lib
  22. GOALS = $(PLIB)\$(NAME).$(EXT) $(PINC)\$(NAME).h $(PINC)\dith775.h
  23. !if "$(NTDEBUG)" == ""
  24. DEF =
  25. CDEBUG =-DWINVER=0x0310
  26. ADEBUG =
  27. DEBUG =RETAIL
  28. LOBJ =retail
  29. !else
  30. DEF =-DDEBUG
  31. CDEBUG =-Zid $(DEF) -Fc -DWINVER=0x0310
  32. ADEBUG =-Zi $(DEF)
  33. DEBUG =DEBUG
  34. LOBJ =debug
  35. !endif
  36. !if "$(STRICT)" == "YES"
  37. TYPES =-DSTRICT
  38. !else
  39. TYPES =
  40. !endif
  41. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG) -l
  42. CFLAGS =-DWIN16 -DWIN31 -Asnw -Oxwti $(TYPES) $(CDEBUG) -Fd$* -Fo$@
  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. CFLAGS =$(CFLAGS)
  49. CFLAGS =$(CFLAGS) -Idva -Idcilib
  50. DVA:
  51. cd dva
  52. $(MAKE)
  53. cd ..
  54. VFlatD:
  55. cd vflatd
  56. $(MAKE)
  57. cd ..
  58. ddtest:
  59. cd ddtest
  60. $(MAKE)
  61. cd ..
  62. $(LOBJ)\dith775a.obj: $$(@B).asm
  63. @echo $(@B).asm
  64. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  65. $(LOBJ)\dith666a.obj: $$(@B).asm
  66. @echo $(@B).asm
  67. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  68. $(LOBJ)\dither8.obj: $$(@B).asm
  69. @echo $(@B).asm
  70. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  71. $(LOBJ)\mapa.obj: $$(@B).asm
  72. @echo $(@B).asm
  73. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  74. $(LOBJ)\stretch.obj: $$(@B).asm
  75. @echo $(@B).asm
  76. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  77. $(LOBJ)\profdisp.obj: $$(@B).c drawdibi.h drawdib.h dither.h stretch.h profdisp.h
  78. @$(CL) @<<
  79. $(CFLAGS) -NT DDSTUFF $(@B).c
  80. <<
  81. $(LOBJ)\dither.obj: $$(@B).c dither.h drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h
  82. @$(CL) @<<
  83. $(CFLAGS) -NT DDSTUFF $(@B).c
  84. <<
  85. $(LOBJ)\dith666.obj: $$(@B).c dither.h dith666.h drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h
  86. @$(CL) @<<
  87. $(CFLAGS) -NT DRAWDIB $(@B).c
  88. <<
  89. $(LOBJ)\dith775.obj: $$(@B).c dither.h dith775.h drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h
  90. @$(CL) @<<
  91. $(CFLAGS) -NT DRAWDIB $(@B).c
  92. <<
  93. $(LOBJ)\drawdib.obj: $$(@B).c drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h drawdib.h dither.h stretch.h
  94. @$(CL) @<<
  95. $(CFLAGS) -NT DRAWDIB $(@B).c
  96. <<
  97. $(LOBJ)\setdi.obj: $$(@B).c *.h
  98. @$(CL) @<<
  99. $(CFLAGS) -NT DRAWDIB $(@B).c
  100. <<
  101. $(LOBJ)\lockbm.obj: $$(@B).c *.h
  102. @$(CL) @<<
  103. $(CFLAGS) -NT DRAWDIB $(@B).c
  104. <<
  105. $(LOBJ)\setdi8.obj: $$(@B).asm
  106. @echo $(@B).asm
  107. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  108. $(LOBJ)\setdi16.obj: $$(@B).asm
  109. @echo $(@B).asm
  110. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  111. $(LOBJ)\setdi24.obj: $$(@B).asm
  112. @echo $(@B).asm
  113. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  114. $(LOBJ)\setdi32.obj: $$(@B).asm
  115. @echo $(@B).asm
  116. @$(ASM) $(AFLAGS) -DSEGNAME=DRAWDIB_386 $(@B),$@;
  117. $(PINC)\compman.h $(PINC)\compddk.h: ..\compman\$$(@F)
  118. @copy ..\compman\$(@F) $@
  119. $(PINC)\$(NAME).h: $(NAME).h
  120. @copy drawdib.h $@
  121. $(PINC)\dith775.h: dith775.h
  122. @copy dith775.h $@