mirror of https://github.com/tongzx/nt5src
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
92 lines
2.7 KiB
####
|
|
#fp32.def - definitions for the fp32 libs build
|
|
#
|
|
# Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
|
|
#
|
|
#Purpose:
|
|
# This file is included in the 'sources' files in this tree
|
|
#
|
|
# Key to FP32 environment variables:
|
|
#
|
|
# CRTLIBDEBUG = debug flag (define for debug libs)
|
|
# CRTLIBTYPE = [dll/mt/st], dll = dynlink
|
|
# mt = multithread,
|
|
# st = singlethread
|
|
#
|
|
#Revision History:
|
|
# 9-26-91 GDP
|
|
# 2-07-92 GDP DLL support (according to crt32.def)
|
|
# 3-04-92 GDP Enabled 386 optimizations
|
|
# 05-22-93 SRW Compile runtines with no debug info except globals.
|
|
# 06-03-93 SRW Okay to allow FPO now, as crt32\startup\mlock.c has
|
|
# been fixed to explicitly disable FPO for itself.
|
|
# 10-18-93 SRW Disable intrinsics on Alpha
|
|
# 11-19-93 GJF Merged in NT SDK version.
|
|
# 01-04-94 GJF Picked up MIPS_OPTIMIZATION from NT SDK version
|
|
# 01-11-94 GJF Variant of fp32.def for NT SDK build.
|
|
# 09-06-94 CFW Remove MTHREAD and _INTL definitions.
|
|
#
|
|
################################################################################
|
|
|
|
# The CRT can't be built with link-time code generation because of
|
|
# LNK1237: "code gen introduced reference to non-native symbol" for intrinsics.
|
|
FORCENATIVEOBJECT = 1
|
|
|
|
NTLEGO=1
|
|
LINKER_FLAGS=-ignore:4006
|
|
LIBRARIAN_FLAGS=-ignore:4006
|
|
MSC_WARNING_LEVEL=/W3 /WX
|
|
|
|
!if 0
|
|
!if $(FREEBUILD)
|
|
DEBUG_CDEFINE = -DNDEBUG
|
|
!else
|
|
DEBUG_CDEFINE = -D_DEBUG
|
|
!endif
|
|
!endif
|
|
|
|
386_STDCALL=0
|
|
TARGETTYPE=LIBRARY
|
|
TARGETPATH=obj
|
|
INCLUDES=$(INCLUDES);..\$(TARGET_DIRECTORY)
|
|
|
|
CONDITIONAL_INCLUDES =
|
|
|
|
386_OPTIMIZATION=/O1
|
|
IA64_OPTIMIZATION=/O1 # Workaround until crtw32\eh\frame.cpp can build /Oxs or /Oxt
|
|
|
|
!IF "$(CRTLIBTYPE)" == "DLL"
|
|
TARGETNAMESUFFIX=dll
|
|
MTOPTION=-D_MT -DCRTDLL -D_CRTIMP=
|
|
C_DEFINES1=$(DEBUG_CDEFINE)
|
|
ASM_DEFINES1=
|
|
!elseif "$(CRTLIBTYPE)" == "MT"
|
|
TARGETNAMESUFFIX=mt
|
|
MTOPTION=-D_MT
|
|
C_DEFINES1=$(DEBUG_CDEFINE)
|
|
ASM_DEFINES1=
|
|
!elseif "$(CRTLIBTYPE)" == "ST"
|
|
TARGETNAMESUFFIX=
|
|
MTOPTION=
|
|
C_DEFINES1=$(DEBUG_CDEFINE)
|
|
ASM_DEFINES1=
|
|
!elseif "$(CRTLIBTYPE)" == "NT"
|
|
TARGETNAMESUFFIX=nt
|
|
MTOPTION=
|
|
C_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
|
|
ASM_DEFINES1=-D_NTSUBSET_=1 -D_NTSYSTEM_=1
|
|
!ELSEIF "$(CRTLIBTYPE)" == "POSIX"
|
|
TARGETNAMESUFFIX=psx
|
|
MTOPTION=
|
|
C_DEFINES1=-D_POSIX_
|
|
ASM_DEFINES1=-D_POSIX_
|
|
INCLUDES=$(SDK_INC_PATH)\posix;$(INCLUDES)
|
|
!else
|
|
!ERROR Unsupported Library CRTLIBTYPE: $(CRTLIBTYPE)
|
|
!ENDIF
|
|
|
|
C_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_CRTBLD -D_SYSCRT
|
|
ASM_DEFINES1=$(C_DEFINES1) -DNT_BUILD -D_WIN32=1 -D_SYSCRT
|
|
|
|
C_DEFINES =$(MTOPTION) $(C_DEFINES1)
|
|
ASM_DEFINES=$(MTOPTION) -DI386 -DFLAT386 $(ASM_DEFINES1)
|