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.

92 lines
2.7 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. !if 0
  38. !if $(FREEBUILD)
  39. DEBUG_CDEFINE = -DNDEBUG
  40. !else
  41. DEBUG_CDEFINE = -D_DEBUG
  42. !endif
  43. !endif
  44. 386_STDCALL=0
  45. TARGETTYPE=LIBRARY
  46. TARGETPATH=obj
  47. INCLUDES=$(INCLUDES);..\$(TARGET_DIRECTORY)
  48. CONDITIONAL_INCLUDES =
  49. 386_OPTIMIZATION=/O1
  50. IA64_OPTIMIZATION=/O1 # Workaround until crtw32\eh\frame.cpp can build /Oxs or /Oxt
  51. !IF "$(CRTLIBTYPE)" == "DLL"
  52. TARGETNAMESUFFIX=dll
  53. MTOPTION=-D_MT -DCRTDLL -D_CRTIMP=
  54. C_DEFINES1=$(DEBUG_CDEFINE)
  55. ASM_DEFINES1=
  56. !elseif "$(CRTLIBTYPE)" == "MT"
  57. TARGETNAMESUFFIX=mt
  58. MTOPTION=-D_MT
  59. C_DEFINES1=$(DEBUG_CDEFINE)
  60. ASM_DEFINES1=
  61. !elseif "$(CRTLIBTYPE)" == "ST"
  62. TARGETNAMESUFFIX=
  63. MTOPTION=
  64. C_DEFINES1=$(DEBUG_CDEFINE)
  65. ASM_DEFINES1=
  66. !elseif "$(CRTLIBTYPE)" == "NT"
  67. TARGETNAMESUFFIX=nt
  68. MTOPTION=
  69. C_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
  70. ASM_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
  71. !ELSEIF "$(CRTLIBTYPE)" == "POSIX"
  72. TARGETNAMESUFFIX=psx
  73. MTOPTION=
  74. C_DEFINES1=-D_POSIX_
  75. ASM_DEFINES1=-D_POSIX_
  76. INCLUDES=$(SDK_INC_PATH)\posix;$(INCLUDES)
  77. !else
  78. !ERROR Unsupported Library CRTLIBTYPE: $(CRTLIBTYPE)
  79. !ENDIF
  80. C_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_CRTBLD -D_SYSCRT
  81. ASM_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_WIN32=1 -D_SYSCRT
  82. C_DEFINES =$(MTOPTION) $(C_DEFINES1)
  83. ASM_DEFINES=$(MTOPTION) -DI386 -DFLAT386 $(ASM_DEFINES1)