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.

142 lines
3.7 KiB

  1. !IF 0
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. sources.
  5. Abstract:
  6. This file specifies the target component being built and the list of
  7. sources files needed to build that component. Also specifies optional
  8. compiler switches and libraries that are unique for the component being
  9. built.
  10. Author:
  11. Steve Wood (stevewo) 12-Apr-1990
  12. NOTE: Commented description of this file is in \nt\bak\bin\sources.tpl
  13. !ENDIF
  14. TARGETNAME=ntvdm
  15. EXEPROFILEINPUT=yes
  16. MVDM_TREE=$(PROJECT_ROOT)\mvdm
  17. SOFTPC_TREE=$(MVDM_TREE)\mvdm\softpc.new
  18. INCLUDES=$(SOFTPC_TREE)\host\inc;$(SOFTPC_TREE)\base\inc
  19. TARGETPATH=obj
  20. !if "$(ALT_PROJECT)" == "daytona"
  21. PASS1_PUBLISH={$(O)\ntvdm.lib=$(SDK_LIB_PATH)\ntvdm.lib}
  22. !endif
  23. TARGETTYPE=PROGLIB
  24. NOT_TERMINAL_SERVER_AWARE=1
  25. TARGETLIBS=\
  26. $(SDK_LIB_PATH)\kernl32p.lib \
  27. $(WINDOWS_LIB_PATH)\gdi32p.lib \
  28. $(WINDOWS_LIB_PATH)\user32p.lib \
  29. $(SDK_LIB_PATH)\ntdll.lib \
  30. !if !$(386)
  31. $(SDK_LIB_PATH)\binmode.obj \
  32. !endif
  33. $(SDK_LIB_PATH)\advapi32.lib
  34. BACKGROUND_USE=1
  35. !if "$(ALT_PROJECT)" == "NEC_98"
  36. ALT_PROJECT_OBJS=NEC_98
  37. ALT_PROJECT_LIBS=NEC_98
  38. ALT_PROJECT_FE=NEC_98
  39. !else
  40. !if "$(ALT_PROJECT)" == "daytona"
  41. ALT_PROJECT_FE=daytona
  42. !else
  43. ALT_PROJECT_FE=fe
  44. !endif
  45. ALT_PROJECT_OBJS=daytona
  46. ALT_PROJECT_LIBS=.
  47. !endif
  48. !if !$(386)
  49. LINKER_FLAGS=$(LINKER_FLAGS) -INCLUDE:__mb_cur_max -INCLUDE:_pctype
  50. !endif
  51. LINKLIBS = \
  52. $(SOFTPC_TREE)\base\support\$(ALT_PROJECT_OBJS)\$(O)\MAIN.obj \
  53. $(SOFTPC_TREE)\host\src\$(ALT_PROJECT)\$(O)\FPRT.OBJ \
  54. $(SOFTPC_TREE)\base\system\$(ALT_PROJECT_OBJS)\$(O)\SYSTEM.LIB \
  55. $(SOFTPC_TREE)\base\bios\$(ALT_PROJECT)\$(O)\BIOS.LIB \
  56. $(SOFTPC_TREE)\base\video\$(ALT_PROJECT)\$(O)\VIDEO.LIB \
  57. $(SOFTPC_TREE)\base\dos\$(ALT_PROJECT_OBJS)\$(O)\DOS.LIB \
  58. $(SOFTPC_TREE)\base\comms\$(ALT_PROJECT_OBJS)\$(O)\COMMS.LIB \
  59. $(SOFTPC_TREE)\base\debug\$(ALT_PROJECT_OBJS)\$(O)\DEBUG.LIB \
  60. $(SOFTPC_TREE)\base\support\$(ALT_PROJECT_OBJS)\$(O)\SUPPORT.LIB \
  61. $(SOFTPC_TREE)\base\disks\$(ALT_PROJECT_OBJS)\$(O)\DISKS.LIB \
  62. $(SOFTPC_TREE)\base\keymouse\$(ALT_PROJECT)\$(O)\KEYMOUSE.LIB \
  63. $(SOFTPC_TREE)\host\src\$(ALT_PROJECT)\$(O)\SRC.LIB \
  64. !if $(386)
  65. $(MVDM_TREE)\v86\monitor\$(ALT_PROJECT_OBJS)\$(O)\monitor.lib \
  66. !else
  67. $(SOFTPC_TREE)\base\dasm386\$(O)\DASM386.LIB \
  68. $(CPULIBS) \
  69. !endif
  70. $(MVDM_TREE)\dbg\$(ALT_PROJECT_OBJS)\$(O)\dbg.lib \
  71. $(MVDM_TREE)\dos\dem\$(ALT_PROJECT)\$(O)\dem.lib \
  72. $(MVDM_TREE)\suballoc\$(O)\suballoc.lib \
  73. $(MVDM_TREE)\dos\command\$(ALT_PROJECT)\$(O)\command.lib \
  74. $(MVDM_TREE)\oemuni\$(ALT_PROJECT_FE)\$(O)\oemuni.lib \
  75. $(MVDM_TREE)\xms.486\$(ALT_PROJECT_OBJS)\$(O)\xms486.lib \
  76. $(MVDM_TREE)\dpmi32\$(ALT_PROJECT_FE)\$(O)\dpmi32.lib
  77. !if $(FREEBUILD)
  78. PD = Pd
  79. !else
  80. PD = Pg
  81. !endif
  82. # Decide whether to use assembler or C CPU.
  83. !if "$(CCPU)" == ""
  84. CPULIBS=$(SOFTPC_TREE)\*\libs\a4$(PD).lib
  85. !else
  86. CPULIBS=$(SOFTPC_TREE)\obj.vdm\$(O)\ccpu486.lib
  87. !endif
  88. # Since we have built objs and libs in LINKLIBS above,
  89. # we need to wait for previous directories to complete
  90. # before building this one. This is because build.exe
  91. # requires LINKLIBS to exist in pass 1 (compile).
  92. SYNCHRONIZE_DRAIN=1
  93. SOURCES=..\ntvdm.c \
  94. ..\imlibdep.c \
  95. ..\resource.rc
  96. MISCFILES=..\doswow_{BA75DD62-6D62-4FCB-89F2-BC53C0659829}.sld
  97. !INCLUDE ..\CDEFINE.INC
  98. UMTYPE=console
  99. #
  100. # base at < 256 MB (0x10000000), so that softpc code buffer
  101. # in allocated Virtual Memory (bottom up) is within
  102. # near jump range to ntvdm's code.
  103. #
  104. UMBASE=0x0f000000
  105. DLLDEF=$(O)\ntvdm.def
  106. SOURCES_USED=..\sources.inc
  107. !if "$(ALT_PROJECT)" != "daytona"
  108. LINKER_FLAGS=$(LINKER_FLAGS) /pdb:$(O)\ntvdm_$(ALT_PROJECT).pdb
  109. !endif