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.

163 lines
2.7 KiB

  1. !IF 0
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. wininet.inc
  5. Abstract:
  6. Common makefile contents for wininet project
  7. Author:
  8. Richard L Firth (rfirth) 10-Feb-1996
  9. Revision History:
  10. 10-Feb-1996 rfirth
  11. Created
  12. !ENDIF
  13. !IFNDEF SDKINC
  14. SDKINC=$(SDK_INC_PATH)
  15. !ENDIF
  16. !IFDEF LIBDIR
  17. !ERROR LIBDIR already defined - choose new name
  18. !ENDIF
  19. LIBDIR=..\lib\$(_OBJ_DIR)
  20. #
  21. # if TARGETPATH is not defined (in the paths that build libraries) then this
  22. # is the default target path
  23. #
  24. !IFNDEF TARGETPATH
  25. TARGETPATH=$(LIBDIR)
  26. TARGETTYPE=LIBRARY
  27. !ENDIF
  28. #
  29. # what it is that we're building
  30. #
  31. MAJORCOMP=wininet
  32. USE_NOLIBS=1
  33. NO_NTDLL=1
  34. USE_MSVCRT=1
  35. #
  36. # compiler definitions
  37. #
  38. C_DEFINES=$(C_DEFINES) -D_WINX32_ -DTHREAD_POOL
  39. #C_DEFINES=$(C_DEFINES) -D_WINX32_
  40. # If we are building for X86 we use w95fiber.dll or NT kernel fibers.
  41. !IF "$(PROCESSOR_ARCHITECTURE)"=="x86"
  42. C_DEFINES=$(C_DEFINES) -DW95_FIBERS
  43. !ENDIF
  44. # Get same version from NT or IE builds.
  45. C_DEFINES=$(C_DEFINES) -DNASHVILLE
  46. !IFDEF USE_ICECAP
  47. C_DEFINES=$(C_DEFINES) -DICECAP
  48. !ENDIF
  49. #
  50. # Set debugging level
  51. #
  52. !IF "$(NTDEBUG)" != "" && "$(NTDEBUG)" != "retail" && "$(NTDEBUG)" != "ntsdnodbg"
  53. C_DEFINES=$(C_DEFINES) -DENABLE_DEBUG -DINET_DEBUG=1
  54. #
  55. # remove maximal diagnostics for customer debug version based on environment
  56. # variable
  57. #
  58. !IF "$(FULL_DEBUG)" != ""
  59. C_DEFINES=$(C_DEFINES) -DUSE_DEBUG_MEMORY
  60. !ELSE
  61. C_DEFINES=$(C_DEFINES) -DRETAIL_LOGGING
  62. !IF "$(BUILD_PRODUCT)" != "IE"
  63. C_DEFINES=$(C_DEFINES) -DDISABLE_ASSERTS
  64. !ENDIF
  65. !ENDIF
  66. !ELSE IF "$(ALMOSTRETAIL)" != ""
  67. C_DEFINES=$(C_DEFINES) -DENABLE_DEBUG
  68. !ENDIF
  69. #
  70. # performance diagnostics
  71. #
  72. !IF "$(PERF_BUILD)" != ""
  73. C_DEFINES=$(C_DEFINES) -DUSE_PERF_DIAG
  74. !ENDIF
  75. !if !defined(CLEANINF_FLAGS)
  76. # Cleaninf flags
  77. CLEANINF_FLAGS = -w
  78. !endif
  79. #
  80. # Linker flags
  81. #
  82. !if "$(BUILD_PRODUCT)" == "IE"
  83. USE_WIN98OPT=1
  84. !endif
  85. # Cleaninf utility
  86. CLEANINF = cleaninf.exe $(CLEANINF_FLAGS)
  87. #
  88. # Do this to assure that we run on NT 4.0 and Win95, even with
  89. # NT5/Memphis headers.
  90. #
  91. WIN32_WINNT_VERSION=0x0400
  92. WIN32_WIN95_VERSION=0x0400
  93. #
  94. # compiler warning flags
  95. #
  96. MSC_WARNING_LEVEL=/W3 /WX
  97. #
  98. # precompiled header options
  99. #
  100. !IFNDEF WININET_PCH
  101. PRECOMPILED_OPTION=/Fp..\inc\$(_OBJ_DIR)\*\wininetp.pch /Yuwininetp.h
  102. PRECOMPILED_CXX=1
  103. !ENDIF
  104. !IF $(IA64)
  105. # Emit LTCG codegen
  106. LTCG_WKS=1
  107. !ENDIF
  108. CONDITIONAL_INCLUDES = \
  109. winwlm.h \
  110. macwin32.h \
  111. ia64inst.h \
  112. pshpck16.h \
  113. rpcerr.h \
  114. rpcmac.h \
  115. macname1.h \
  116. macpub.h \
  117. macapi.h \
  118. macname2.h