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.

90 lines
1.6 KiB

  1. #
  2. # Copyright (C) Microsoft Corporation 1993. All Rights reserved.
  3. #
  4. !if "$(NTMAKEENV)" != ""
  5. !INCLUDE $(NTMAKEENV)\makefile.def
  6. !else
  7. NAME =acmcmprs
  8. RESNAME =handler
  9. EXT =dll
  10. ROOT =..\..
  11. PBIN =$(ROOT)\bin
  12. PLIB =$(ROOT)\lib
  13. PINC =$(ROOT)\inc
  14. PVER =$(ROOT)\verinfo\$(LANG)
  15. LOBJ =$(OS)\$(LANG)
  16. LRES =res\$(LANG)
  17. OBJS =$(LOBJ)\factory.obj $(LOBJ)\$(NAME).obj $(LOBJ)\muldiv32.obj
  18. GOALS =$(PBIN)\$(NAME).sym $(PBIN)\$(NAME).$(EXT)
  19. LIBS =libw mdllcew shell mmsystem avifile msacm
  20. !if "$(DEBUG)" == "NO"
  21. DEF =
  22. CDEBUG =
  23. L16DEBUG=
  24. RDEBUG =
  25. !else
  26. !if "$(DEBUG)" == "RETAIL"
  27. DEF =-DDEBUG_RETAIL
  28. CDEBUG =-Zd $(DEF)
  29. L16DEBUG=/LI
  30. RDEBUG =-v $(DEF)
  31. !else
  32. DEF =-DDEBUG
  33. CDEBUG =-Zid $(DEF)
  34. L16DEBUG=/CO/LI
  35. RDEBUG =-v $(DEF)
  36. !endif
  37. !endif
  38. !if "$(STRICT)" == "YES"
  39. TYPES =-DSTRICT
  40. !else
  41. TYPES =
  42. !endif
  43. CFLAGS =-G2s -GA -GEd -DWINDLL -AMw -Oxws $(TYPES) $(CDEBUG) -I$(LRES) -Fo$(LOBJ)\$(@F)
  44. L16FLAGS=/ONERROR:NOEXE$(L16DEBUG)
  45. RCFLAGS =$(RDEBUG)
  46. IS_16 =TRUE
  47. IS_OEM =TRUE
  48. !include $(ROOT)\build\project.mk
  49. $(LOBJ)\factory.obj: $$(@B).cpp $(RESNAME).h
  50. @$(CL) @<<
  51. $(CFLAGS) -NT _TEXT $(@B).cpp
  52. <<
  53. $(LOBJ)\$(NAME).obj: $$(@B).cpp $(RESNAME).h
  54. @$(CL) @<<
  55. $(CFLAGS) -NT _TEXT $(@B).cpp
  56. <<
  57. $(LOBJ)\muldiv32.obj: $$(@B).asm
  58. @echo $(@B).asm
  59. @$(ASM) $(AFLAGS) -DSEGNAME=_TEXT $(@B),$@;
  60. $(LOBJ)\$(NAME).res: \
  61. $(LRES)\$(RESNAME).rc \
  62. $(LRES)\$(RESNAME).rcv \
  63. $(PVER)\verinfo.h \
  64. $(PVER)\verinfo.ver
  65. @rc $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(RESNAME).rc
  66. $(LOBJ)\$(NAME).$(EXT) $(LOBJ)\$(NAME).map: \
  67. $(OBJS) $$(@B).def $$(@R).res
  68. @$(LINK16) @<<
  69. $(OBJS),
  70. $(@R).$(EXT) $(L16FLAGS),
  71. $(@R).map,
  72. $(LIBS),
  73. $(@B).def
  74. <<
  75. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)
  76. !endif