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.

93 lines
2.8 KiB

  1. ####
  2. #fp32.def - definitions for the fp32 libs build
  3. #
  4. # Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. #
  6. #Purpose:
  7. # This file is included in the 'sources' files in this tree
  8. #
  9. # Key to FP32 environment variables:
  10. #
  11. # CRTLIBDEBUG = debug flag (define for debug libs)
  12. # CRTLIBTYPE = [dll/mt/st], dll = dynlink
  13. # mt = multithread,
  14. # st = singlethread
  15. #
  16. #Revision History:
  17. # 9-26-91 GDP
  18. # 2-07-92 GDP DLL support (according to crt32.def)
  19. # 3-04-92 GDP Enabled 386 optimizations
  20. # 05-22-93 SRW Compile runtines with no debug info except globals.
  21. # 06-03-93 SRW Okay to allow FPO now, as crt32\startup\mlock.c has
  22. # been fixed to explicitly disable FPO for itself.
  23. # 10-18-93 SRW Disable intrinsics on Alpha
  24. # 11-19-93 GJF Merged in NT SDK version.
  25. # 01-04-94 GJF Picked up MIPS_OPTIMIZATION from NT SDK version
  26. # 01-11-94 GJF Variant of fp32.def for NT SDK build.
  27. # 09-06-94 CFW Remove MTHREAD and _INTL definitions.
  28. #
  29. ################################################################################
  30. # The CRT can't be built with link-time code generation because of
  31. # LNK1237: "code gen introduced reference to non-native symbol" for intrinsics.
  32. FORCENATIVEOBJECT = 1
  33. NTLEGO=1
  34. LINKER_FLAGS=-ignore:4006
  35. LIBRARIAN_FLAGS=-ignore:4006
  36. MSC_WARNING_LEVEL=/W3 /WX
  37. !ifndef BUILD_DEBUG_CRTS
  38. DEBUG_CDEFINE = -DNDEBUG
  39. !else
  40. DEBUG_CDEFINE = -D_DEBUG
  41. !endif
  42. 386_STDCALL=0
  43. TARGETTYPE=LIBRARY
  44. TARGETPATH=obj
  45. INCLUDES=$(INCLUDES);..\$(TARGET_DIRECTORY)
  46. CONDITIONAL_INCLUDES =
  47. 386_OPTIMIZATION=/O1
  48. IA64_OPTIMIZATION=/O1 # Workaround until crtw32\eh\frame.cpp can build /Oxs or /Oxt
  49. !IF "$(CRTLIBTYPE)" == "DLL"
  50. TARGETNAMESUFFIX=dll
  51. MTOPTION=-D_MT -DCRTDLL -D_CRTIMP=
  52. C_DEFINES1=$(DEBUG_CDEFINE)
  53. ASM_DEFINES1=
  54. !elseif "$(CRTLIBTYPE)" == "MT"
  55. TARGETNAMESUFFIX=mt
  56. MTOPTION=-D_MT
  57. C_DEFINES1=$(DEBUG_CDEFINE)
  58. ASM_DEFINES1=
  59. !elseif "$(CRTLIBTYPE)" == "ST"
  60. TARGETNAMESUFFIX=
  61. MTOPTION=
  62. C_DEFINES1=$(DEBUG_CDEFINE)
  63. ASM_DEFINES1=
  64. !elseif "$(CRTLIBTYPE)" == "NT"
  65. TARGETNAMESUFFIX=nt
  66. MTOPTION=
  67. C_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
  68. ASM_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
  69. !ELSEIF "$(CRTLIBTYPE)" == "POSIX"
  70. TARGETNAMESUFFIX=psx
  71. MTOPTION=
  72. C_DEFINES1=-D_POSIX_
  73. ASM_DEFINES1=-D_POSIX_
  74. INCLUDES=$(SDK_INC_PATH)\posix;$(INCLUDES)
  75. !else
  76. !ERROR Unsupported Library CRTLIBTYPE: $(CRTLIBTYPE)
  77. !ENDIF
  78. C_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_CRTBLD -D_SYSCRT
  79. ASM_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_WIN32=1 -D_SYSCRT
  80. C_DEFINES =$(MTOPTION) $(C_DEFINES1)
  81. ASM_DEFINES=$(MTOPTION) -DI386 -DFLAT386 $(ASM_DEFINES1)
  82. # No overflow checking for the CRT
  83. BUFFER_OVERFLOW_CHECKS=0