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.

155 lines
2.5 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=winhttpx
  32. USE_NOLIBS=1
  33. USE_MSVCRT=1
  34. NO_NTDLL=1
  35. #
  36. # compiler definitions
  37. #
  38. C_DEFINES=$(C_DEFINES) -D_WINHTTP_INTERNAL_ -DCOMPILING_ROCKALL_LIBRARY
  39. # Get same version from NT or IE builds.
  40. C_DEFINES=$(C_DEFINES)
  41. !IFDEF USE_ICECAP
  42. C_DEFINES=$(C_DEFINES) -DICECAP
  43. !ENDIF
  44. #
  45. # Set debugging level
  46. #
  47. !IF "$(NTDEBUG)" != "" && "$(NTDEBUG)" != "retail" && "$(NTDEBUG)" != "ntsdnodbg"
  48. C_DEFINES=$(C_DEFINES) -DENABLE_DEBUG -DINET_DEBUG=1
  49. #
  50. # remove maximal diagnostics for customer debug version based on environment
  51. # variable
  52. #
  53. !IF "$(FULL_DEBUG)" != ""
  54. C_DEFINES=$(C_DEFINES) -DUSE_DEBUG_MEMORY
  55. !ELSE
  56. C_DEFINES=$(C_DEFINES) -DRETAIL_LOGGING
  57. !IF "$(BUILD_PRODUCT)" != "NT"
  58. C_DEFINES=$(C_DEFINES) -DDISABLE_ASSERTS
  59. !ENDIF
  60. !ENDIF
  61. !ELSE IF "$(ALMOSTRETAIL)" != ""
  62. C_DEFINES=$(C_DEFINES) -DENABLE_DEBUG
  63. !ENDIF
  64. !IF "$(WIN64)" == "0" && "$(FULL_DEBUG)"==""
  65. C_DEFINES=$(C_DEFINES) -DUSE_ROCKALL
  66. !ENDIF
  67. #
  68. # performance diagnostics
  69. #
  70. !IF "$(PERF_BUILD)" != ""
  71. C_DEFINES=$(C_DEFINES) -DUSE_PERF_DIAG
  72. !ENDIF
  73. !if !defined(CLEANINF_FLAGS)
  74. # Cleaninf flags
  75. CLEANINF_FLAGS = -w
  76. !endif
  77. #
  78. # Linker flags
  79. #
  80. !if "$(BUILD_PRODUCT)" == "IE"
  81. USE_WIN98OPT=1
  82. !endif
  83. # Cleaninf utility
  84. CLEANINF = cleaninf.exe $(CLEANINF_FLAGS)
  85. #
  86. # Do this to assure that we run on NT 4.0 and Win95, even with
  87. # NT5/Memphis headers.
  88. #
  89. WIN32_WINNT_VERSION=0x0400
  90. WIN32_WIN95_VERSION=0x0400
  91. #
  92. # compiler warning flags
  93. #
  94. MSC_WARNING_LEVEL=/W3 /WX
  95. #
  96. # precompiled header options
  97. #
  98. !IFNDEF WININET_PCH
  99. PRECOMPILED_OPTION=/Fp..\inc\$(_OBJ_DIR)\*\wininetp.pch /Yuwininetp.h
  100. PRECOMPILED_CXX=1
  101. !ENDIF
  102. CONDITIONAL_INCLUDES = \
  103. winwlm.h \
  104. macwin32.h \
  105. ia64inst.h \
  106. pshpck16.h \
  107. rpcerr.h \
  108. rpcmac.h \
  109. macname1.h \
  110. macpub.h \
  111. macapi.h \
  112. macname2.h