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.

105 lines
2.7 KiB

  1. !ifdef PROJECT_ROOT
  2. ! INCLUDE $(PROJECT_ROOT)\pchealth\build\paths.all
  3. !else
  4. ! INCLUDE $(INETROOT)\build\paths.all
  5. !endif
  6. # this looks like a -*-Makefile-*-
  7. !include ..\..\common.inc
  8. MAJORCOMP=PCHMars
  9. MINORCOMP=dll
  10. #
  11. # USE_NOLIBS gets rid of linking with the CRT. It also causes a link with
  12. # int64.lib
  13. #
  14. #USE_NOLIBS = 1
  15. #USE_STL=1
  16. #USE_ATL = 1
  17. #ATL_VER = 30
  18. INCLUDES = ..;$(MARS_DIR)\ext\inc;$(INCLUDES)
  19. !ifndef NOPCHBLD
  20. PRECOMPILED_CXX = 1
  21. PRECOMPILED_INCLUDE = ..\precomp.h
  22. PRECOMPILED_OBJ = precomp.obj
  23. !endif
  24. #
  25. # UMTYPE console will link with advapi32.lib and kerenel32.lib
  26. #
  27. UMTYPE = windows
  28. TARGETNAME = pchshell
  29. TARGETTYPE = DYNLINK
  30. DLLENTRY = DllMain
  31. #
  32. # Unfortunately, we get a link warning since we stub this in sdstub.cpp and
  33. # it is used in stocklib.lib.
  34. #
  35. # warning LNK4049: locally defined symbol "_ILCreateFromPathW@4" imported
  36. #
  37. #LINKER_FLAGS= $(LINKER_FLAGS) -IGNORE:4049
  38. #
  39. # Define path for private libs
  40. #
  41. #!ifndef PRIVATE_LIB_PATH
  42. #PRIVATE_LIB_PATH = $(BASEDIR)\private\lib
  43. #!endif
  44. DELAYLOAD=WININET.DLL; SHELL32.DLL; HLINK.DLL
  45. DLOAD_ERROR_HANDLER=PCHSHELL_DelayLoadFailureHook
  46. #
  47. # Since we need to run on win95 link to the w95 shell (shell32.w95).
  48. # This should catch anyone trying to use shell32 exports that aren't
  49. # in w95. The w95 shell lib doesn't contain the proper information
  50. # for bbt. If we want to bbt we need to link to a more recent shell
  51. # lib so on retail builds we link to the nt4 shell.
  52. #
  53. TARGETLIBS = \
  54. $(LOCALLIBPATH)\parser.lib \
  55. $(LOCALLIBPATH)\acuuid.lib \
  56. $(SDKLIBPATH)\kernel32.lib \
  57. $(SDKLIBPATH)\user32.lib \
  58. $(SDKLIBPATH)\ole32.lib \
  59. $(SDKLIBPATH)\oleaut32.lib \
  60. $(SDKLIBPATH)\uuid.lib \
  61. $(SDKLIBPATH)\gdi32.lib \
  62. $(SDKLIBPATH)\urlmon.lib \
  63. $(SDKLIBPATH)\advapi32.lib \
  64. $(SDKLIBPATH)\wininet.lib \
  65. $(SDKLIBPATH)\hlink.lib \
  66. $(SHELL_LIB_PATH)\shuuid.lib \
  67. $(SHELL_LIB_PATH)\shlwapip.lib \
  68. $(SHELL_LIB_PATH)\shell32p.lib \
  69. $(SHELL_LIB_PATH)\comctlp.lib \
  70. LINKLIBS = \
  71. $(LOCALLIBPATH)\marslib.lib
  72. !if "$(IA64)"=="1"
  73. LINKLIBS = $(LINKLIBS) $(SDKLIBPATH)\atl21asm.lib
  74. !endif
  75. DLLDEF = ..\marscore.def
  76. SOURCES = \
  77. ..\marscore.rc \
  78. ..\axhost.cpp \
  79. ..\external.cpp \
  80. ..\globals.cpp \
  81. ..\marscore.cpp \
  82. ..\marswin.cpp \
  83. ..\panel.cpp \
  84. ..\place.cpp \
  85. ..\profsvc.cpp \
  86. ..\util.cpp \
  87. dload.c
  88. !INCLUDE $(INETROOT)\build\sources.all