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.

69 lines
1.8 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. # Standard m4 headers for dependencies.
  14. RAST_STD_M4 = $(RASTROOT)\inc\m4hdr.mh
  15. # Create a .h file from a .mh file.
  16. {..}.mh{$(GENTGT)}.h:
  17. m4 -I..;$(RASTROOT)\inc $< > $*.h
  18. # Create an asm include file from a .ma file.
  19. {..}.ma{$(GENTGT)}.$(ASM_INCLUDE_SUFFIX):
  20. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).$(ASM_INCLUDE_SUFFIX)
  21. # Create a .cpp file from a .mcp file.
  22. {..}.mcp{$(GENTGT)}.cpp:
  23. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).cpp
  24. # Create an asm file from a .mas file.
  25. {..}.mas{$(GENTGT)}.$(ASM_SUFFIX):
  26. m4 -I..;$(RASTROOT)\inc $< > $(GENTGT)\$(<B).$(ASM_SUFFIX)
  27. # Create an asm include file from a .acp file.
  28. # Avoid using PERFFLAGS so profile builds can be done without
  29. # icap.dll on the build machine.
  30. {..}.acp{$(GENTGT)}.$(ASM_INCLUDE_SUFFIX):
  31. $(CXX_COMPILER_NAME) @<<$*.crf
  32. -I$(TARGET_DIRECTORY)\ -I.
  33. $(INCPATH1)
  34. $(STD_DEFINES)
  35. $(TARGET_DBG_DEFINES)
  36. $(ENV_DEFINES)
  37. $(LIBC_DEFINES)
  38. $(C_DEFINES)
  39. $(NET_C_DEFINES)
  40. $(386_FLAGS)
  41. $(NT386FLAGS)
  42. $(STDFLAGS)
  43. $(DBGFLAGS)
  44. $(USER_C_FLAGS)
  45. /Fo$*.obj
  46. /Tp$<
  47. <<$(KEEPCRF)
  48. $(LINKER) @<<$*.lrf
  49. /NOLOGO
  50. /MACHINE:$(PROCESSOR_ARCHITECTURE:x86=ix86)
  51. /SUBSYSTEM:CONSOLE
  52. /PDB:NONE
  53. /IGNORE:4089
  54. /nod
  55. $(_NTDRIVE)$(_NTROOT)\public\sdk\lib\$(TARGET_DIRECTORY)\msvcrt.lib
  56. $(_NTDRIVE)$(_NTROOT)\public\sdk\lib\$(TARGET_DIRECTORY)\kernel32.lib
  57. $*.obj
  58. /OUT:$*.exe
  59. <<$(KEEPLRF)
  60. @$*.exe > $*.$(ASM_INCLUDE_SUFFIX)
  61. @del /q $*.exe $*.obj