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.

73 lines
1.9 KiB

  1. #############################################################################
  2. #
  3. # rastrule.mk
  4. #
  5. # Make rules for rasterization build. Assumes makefile.inc make
  6. # environment.
  7. #
  8. # Copyright (C) Microsoft Corporation, 1997.
  9. #
  10. #############################################################################
  11. .SUFFIXES: .mh .mcp .mas .ma .acp
  12. GENTGT = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
  13. !ifndef RASTROOT
  14. RASTROOT = $(D3DDX7)\rast
  15. !endif
  16. # Standard m4 headers for dependencies.
  17. RAST_STD_M4 = $(RASTROOT)\inc\m4hdr.mh
  18. # Create a .h file from a .mh file.
  19. {..}.mh{$(GENTGT)}.h:
  20. m4 -I..;$(RASTROOT)\inc $< > $*.h
  21. # Create an asm include file from a .ma file.
  22. {..}.ma{$(GENTGT)}.$(ASM_INCLUDE_SUFFIX):
  23. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).$(ASM_INCLUDE_SUFFIX)
  24. # Create a .cpp file from a .mcp file.
  25. {..}.mcp{$(GENTGT)}.cpp:
  26. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).cpp
  27. # Create an asm file from a .mas file.
  28. {..}.mas{$(GENTGT)}.$(ASM_SUFFIX):
  29. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).$(ASM_SUFFIX)
  30. # Create an asm include file from a .acp file.
  31. # Avoid using PERFFLAGS so profile builds can be done without
  32. # icap.dll on the build machine.
  33. {..}.acp{$(GENTGT)}.$(ASM_INCLUDE_SUFFIX):
  34. $(CXX_COMPILER_NAME) @<<$*.crf
  35. -I$(TARGET_DIRECTORY)\ -I.
  36. $(INCPATH1)
  37. $(STD_DEFINES)
  38. $(TARGET_DBG_DEFINES)
  39. $(ENV_DEFINES)
  40. $(LIBC_DEFINES)
  41. $(C_DEFINES)
  42. $(NET_C_DEFINES)
  43. $(386_FLAGS)
  44. $(NT386FLAGS)
  45. $(STDFLAGS)
  46. $(DBGFLAGS)
  47. $(USER_C_FLAGS)
  48. /Fo$*.obj
  49. /Tp$<
  50. <<$(KEEPCRF)
  51. $(LINKER) @<<$*.lrf
  52. /NOLOGO
  53. /MACHINE:$(PROCESSOR_ARCHITECTURE:x86=ix86)
  54. /SUBSYSTEM:CONSOLE
  55. /PDB:NONE
  56. /IGNORE:4089
  57. /nod
  58. $(_NTDRIVE)$(_NTROOT)\public\sdk\lib\$(TARGET_DIRECTORY)\msvcrt.lib
  59. $(_NTDRIVE)$(_NTROOT)\public\sdk\lib\$(TARGET_DIRECTORY)\kernel32.lib
  60. $*.obj
  61. /OUT:$*.exe
  62. <<$(KEEPLRF)
  63. @$*.exe > $*.$(ASM_INCLUDE_SUFFIX)
  64. @del /q $*.exe $*.obj