summaryrefslogtreecommitdiffstats
path: root/private/fp32/fp32.def
blob: 6923b8c9a969475cf100fdd7d7256422b6d6c96c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
####
#fp32.def - definitions for the fp32 libs build
#
#	Copyright (c) 1991-1991, 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
#
################################################################################

NTDEBUG=

NTLEGO=1

!IF "$(CRTLIBTYPE)" == "DLL"
TARGETNAMESUFFIX=dll
TARGETTYPE=LIBRARY
MTOPTION=-DMTHREAD -D_MT -DCRTDLL
C_DEFINES1=-D_WIN32_=1 -D_INTL
ASM_DEFINES1=
!ELSE
!IF "$(CRTLIBTYPE)" == "MT"
TARGETNAMESUFFIX=mt
TARGETTYPE=LIBRARY
MTOPTION=-DMTHREAD -D_MT
C_DEFINES1=-D_WIN32_=1 -D_INTL
ASM_DEFINES1=
!ELSE
!IF "$(CRTLIBTYPE)" == "ST"
TARGETNAMESUFFIX=
TARGETTYPE=LIBRARY
MTOPTION=
C_DEFINES1=-D_WIN32_=1 -D_INTL
ASM_DEFINES1=
!ELSE
!IF "$(CRTLIBTYPE)" == "NT"
TARGETNAMESUFFIX=nt
TARGETTYPE=LIBRARY
MTOPTION=
C_DEFINES1=-D_WIN32_=1 -D_NTSUBSET_=1 -D_INTL
ASM_DEFINES1=-D_WIN32_=1 -D_NTSUBSET_=1
!ELSE
!ERROR Unsupported Library CRTLIBTYPE: $(CRTLIBTYPE)
!ENDIF
!ENDIF
!ENDIF
!ENDIF

# _WIN32_ is needed in case cruntime.h is used

!IF "$(CRTLIBDEBUG)" == ""
C_DEFINES=-DNDEBUG $(C_DEFINES1) $(MTOPTION)
ASM_DEFINES=$(ASM_DEFINES1) -DFLAT386 -DI386 $(MTOPTION)
!ELSE
C_DEFINES=$(C_DEFINES1) -DDEBUG=1 $(MTOPTION)
ASM_DEFINES=$(ASM_DEFINES1) -DFLAT386 -DDEBUG=1 -DI386 $(MTOPTION)
!ENDIF

# Disable intrinsics on Alpha as it will not allow redefinition of intrinsics
ALPHA_OPTIMIZATION=/Ox /Oi-
# PPC too
PPC_OPTIMIZATION=/Ox /Oi-