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.

123 lines
2.3 KiB

  1. #############################################################################
  2. #
  3. # Microsoft Confidential
  4. # Copyright (C) Microsoft Corporation 1995-1996
  5. # All Rights Reserved.
  6. #
  7. # Common SCANCAM make settings for Win96 build envronment
  8. #
  9. ##########################################################################
  10. !IFNDEF ROOT
  11. ROOT=..\..\..
  12. !ENDIF
  13. WINICE_PATH = d:\siw95
  14. #
  15. # Define WDM root
  16. #
  17. !IFNDEF WDMROOT
  18. WDMROOT= $(ROOT)\wdm
  19. !ENDIF
  20. #
  21. # Define constants for master.mk
  22. #
  23. IS_OEM = TRUE
  24. IS_32 = TRUE
  25. IS_SDK = TRUE
  26. WIN32 = TRUE
  27. BUILD_COFF = TRUE
  28. #WANT_C1032 = TRUE
  29. WANT_C1132 = TRUE
  30. BUILD_COFF = TRUE
  31. SRCDIR = ..
  32. DEPENDNAME = ..\depend.mk
  33. ###VERDIRLIST = MAXDEBUG DEBUG RETAIL
  34. !ifdef BUILDDLL
  35. DLLENTRY = DllEntryPoint
  36. !endif
  37. #
  38. # master.mk does not clean everything we create, so tell it
  39. #
  40. CLEANLIST = $(CLEANLIST) *.sbr *.cod *.pch *.pdb *.idb *.ilk *.res *.dll *.exe *.cpl ..\*.res
  41. #
  42. # Define compiler flags , common for building services
  43. #
  44. CFLAGS = $(CFLAGS) -Gz -DWIN32 -D_WINDOWS
  45. # Precompiled header
  46. !IFDEF PRIVINC
  47. CFLAGS = $(CFLAGS) -YX$(PRIVINC)
  48. !ENDIF
  49. # Machine code generation if not rejected
  50. !ifndef NOCODFILES
  51. CFLAGS=$(CFLAGS) -Fc
  52. !endif
  53. #
  54. # Definitions for building debug binaries. MAXDEBUG is used for building
  55. # binaries for symbolcid debugging
  56. #
  57. !IF "$(VERDIR)" == "debug" || "$(VERDIR)" == "DEBUG"
  58. CFLAGS = $(CFLAGS) -DDEBUG
  59. !ifdef MAXDEBUG
  60. NOMERGETEXT = TRUE
  61. NOMERGEBSS = TRUE
  62. CUSTOMFLAGS = -DMAXDEBUG
  63. CFLAGS = $(CFLAGS) -DMAXDEBUG
  64. CFLAGS = $(CFLAGS) -Zi -Od
  65. DEBUGFLAGS = $(DEBUGFLAGS) -DMAXDEBUG
  66. L32FLAGS = $(L32FLAGS) -debugtype:both -pdb:none
  67. !else
  68. CFLAGS = $(CFLAGS) -Zd
  69. !endif
  70. !ENDIF
  71. #
  72. # Global static libraries we use ( no auto rebuild)
  73. #
  74. L32LIBSNODEP = $(L32LIBSNODEP) ole32.lib \
  75. #LIBSNODEP = $(LIBSNODEP) class.lib int64.lib scsiport.lib
  76. #
  77. # Include global make settings
  78. #
  79. !INCLUDE $(ROOT)\dev\master.mk
  80. #
  81. # Build target
  82. #
  83. #default: $(TARGETS)
  84. !ifdef STATICLIB
  85. $(STATICLIB): $(L32OBJS)
  86. if exist $(TARGETS) del $(TARGETS)
  87. lib $(LBFLAGS) @<<$(@B).lnk
  88. -out:$(STATICLIB)
  89. $(L32OBJS: = ^
  90. )
  91. <<$(KEEPFLAG)
  92. !endif
  93. #
  94. # Setting which need to override master.mk
  95. #
  96. INCLUDE = $(INCLUDE);$(ROOT)\dev\ntsdk\inc;$(WDMROOT)\scancam\inc;$(WDMROOT)\image\inc;
  97. #LIB = $(LIB);