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.

106 lines
2.4 KiB

  1. #DITH =dith775
  2. DITH =dith666
  3. NAME =drawdib
  4. EXT =lib
  5. ROOT =..\..\..
  6. !if "$(WIN32)" == "TRUE"
  7. OBJS =$(NAME).obj $(DITH).obj dither.obj stretchc.obj profdisp.obj setdi.obj lockbm.obj
  8. !else
  9. OBJ1 =$(NAME).obj $(DITH).obj dither.obj dither8.obj
  10. OBJ2 =stretch.obj mapa.obj profdisp.obj $(DITH)a.obj lockbm.obj
  11. OBJ3 =setdi.obj setdi8.obj setdi16.obj setdi24.obj setdi32.obj
  12. OBJS =$(OBJ1) $(OBJ2) $(OBJ3)
  13. !endif
  14. GOALS =$(PLIB)\$(NAME).$(EXT) $(PINC)\$(NAME).h $(PINC)\dith775.h
  15. !if "$(DEBUG)" == "retail"
  16. DEF =
  17. CDEBUG =$(DEF)
  18. ADEBUG =
  19. !else
  20. !if "$(DEBUG)" == "debug"
  21. DEF =-DDEBUG_RETAIL
  22. CDEBUG =$(DEF)
  23. ADEBUG =$(DEF)
  24. !else
  25. DEF =-DDEBUG
  26. CDEBUG =$(DEF)
  27. ADEBUG =-Zi $(DEF)
  28. !endif
  29. !endif
  30. !if "$(WIN32)" == "TRUE"
  31. CFLAGS =-Oxs -D_X86_ $(CDEBUG) -Fo$@ -DCHICAGO
  32. IS_32 =TRUE
  33. WANT_C932=TRUE
  34. LB =lib # Don't want c816 lib
  35. !else
  36. AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
  37. CFLAGS =-Oxwti -Asnw -DWIN16 $(CDEBUG) -Fo$@ -DCHICAGO
  38. IS_16 =TRUE
  39. !endif
  40. IS_OEM =TRUE
  41. !include $(ROOT)\build\project.mk
  42. $(NAME).obj: ..\..\$$(@B).c ..\..\drawdibi.h $(PINC)\profile.h $(PINC)\compman.h $(PINC)\compddk.h
  43. !if "$(WIN32)" != "TRUE"
  44. @$(CL) @<<
  45. $(CFLAGS) ..\..\$(@B).c
  46. <<
  47. !endif
  48. $(DITH).obj: ..\..\$$(@B).c ..\..\drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h
  49. !if "$(WIN32)" != "TRUE"
  50. @$(CL) @<<
  51. $(CFLAGS) ..\..\$(@B).c
  52. <<
  53. !endif
  54. dither.obj: ..\..\$$(@B).c ..\..\drawdibi.h $(PINC)\compman.h $(PINC)\compddk.h
  55. !if "$(WIN32)" != "TRUE"
  56. @$(CL) @<<
  57. $(CFLAGS) ..\..\$(@B).c
  58. <<
  59. !endif
  60. stretchc.obj: ..\..\$$(@B).c ..\..\drawdibi.h
  61. !if "$(WIN32)" != "TRUE"
  62. @$(CL) @<<
  63. $(CFLAGS) ..\..\$(@B).c
  64. <<
  65. !endif
  66. profdisp.obj: ..\..\$$(@B).c ..\..\drawdibi.h $(PINC)\profile.h $(PINC)\compman.h $(PINC)\compddk.h
  67. !if "$(WIN32)" != "TRUE"
  68. @$(CL) @<<
  69. $(CFLAGS) ..\..\$(@B).c
  70. <<
  71. !endif
  72. setdi.obj: ..\..\$$(@B).c
  73. !if "$(WIN32)" != "TRUE"
  74. @$(CL) @<<
  75. $(CFLAGS) ..\..\$(@B).c
  76. <<
  77. !endif
  78. lockbm.obj: ..\..\$$(@B).c
  79. @$(CL) @<<
  80. $(CFLAGS) ..\..\$(@B).c
  81. <<
  82. !if "$(WIN32)" != "TRUE"
  83. dith775a.obj $(DITH)a.obj dither8.obj mapa.obj stretch.obj setdi8.obj setdi16.obj setdi24.obj setdi32.obj: \
  84. ..\..\$$(@B).asm
  85. @echo $(@B).asm
  86. @$(ASM) $(AFLAGS) -DSEGNAME=$(NAME)_386 ..\..\$(@B),$@;
  87. !endif
  88. $(PINC)\profile.h: $(ROOT)\msvideo.32\$$(@F)
  89. @copy %s $@
  90. $(PINC)\compman.h $(PINC)\compddk.h: $(ROOT)\compman.32\$$(@F)
  91. @copy %s $@