blob: 43add7b8f21b583a3fcf064f5747985eb6f1be7d (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
####
#crt32.def - definitions for the crt32 build
#
# Copyright (c) 1991-1992, Microsoft Corporation. All rights reserved.
#
#Purpose:
# This file is included in the 'sources' files in this tree
#
# Key to CRT32 environment variables:
#
# CRTLIBDEBUG = debug flag (define for debug libs)
# CRTLIBTYPE = [dll/mt/st], dll = dynalink, mt = multithread,
# st = singlethread
#
# [Other variables are used directly by the NT build tool.]
#
#Revision History:
# 09-29-91 JCR File created.
# 10-04-91 JCR Added mt vs st build
# 01-06-92 GJF Added DLL support. Cleaned up a bit.
# 04-16-92 DJM POSIX support.
# 08-28-92 GJF Fixed POSIX support.
# 09-02-92 SRW Removed -D_INTL from all versions until
# Win32 NLS API calls are faster. When that
# happens, add it back to all but Posix version.
# 12-03-92 KRS Added optional _MBCS defines.
# 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 -D_MBCS -D_KANJI
ASM_DEFINES1=-D_WIN32_=1 -D_INTL
INCLUDES=..\h
!ELSE
!IF "$(CRTLIBTYPE)" == "MT"
TARGETNAMESUFFIX=mt
TARGETTYPE=LIBRARY
MTOPTION=-DMTHREAD -D_MT
C_DEFINES1=-D_WIN32_=1 -D_INTL -D_MBCS -D_KANJI
ASM_DEFINES1=-D_WIN32_=1 -D_INTL
INCLUDES=..\h
!ELSE
!IF "$(CRTLIBTYPE)" == "ST"
TARGETNAMESUFFIX=
TARGETTYPE=LIBRARY
MTOPTION=
C_DEFINES1=-D_WIN32_=1 -D_INTL -D_MBCS -D_KANJI
ASM_DEFINES1=-D_WIN32_=1 -D_INTL
INCLUDES=..\h
!ELSE
!IF "$(CRTLIBTYPE)" == "NT"
TARGETNAMESUFFIX=nt
TARGETTYPE=LIBRARY
MTOPTION=
C_DEFINES1=-D_WIN32_=1 -D_NTSUBSET_=1 -D_NTSYSTEM_=1 -D_INTL
ASM_DEFINES1=-D_WIN32_=1 -D_NTSUBSET_=1 -D_NTSYSTEM_=1 -D_INTL
INCLUDES=..\h
!ELSE
!IF "$(CRTLIBTYPE)" == "POSIX"
TARGETNAMESUFFIX=psx
TARGETTYPE=LIBRARY
MTOPTION=
C_DEFINES1=-D_POSIX_=1 -D_CRTHEAP_ -D_INTL -D_MBCS -D_KANJI -D_NTSUBSET_
ASM_DEFINES1=-D_POSIX_=1 -D_INTL
INCLUDES=$(BASEDIR)\public\sdk\inc\posix;..\h
!ELSE
!ERROR Unsupported Library CRTLIBTYPE: $(CRTLIBTYPE)
!ENDIF
!ENDIF
!ENDIF
!ENDIF
!ENDIF
!IF "$(CRTLIBDEBUG)" == ""
C_DEFINES=-DNDEBUG $(C_DEFINES1) $(MTOPTION) $(MBCS_DEFINES)
ASM_DEFINES=$(ASM_DEFINES1) $(MTOPTION) $(MBCS_DEFINES)
!ELSE
C_DEFINES=$(C_DEFINES1) -DDEBUG=1 $(MTOPTION) $(MBCS_DEFINES)
ASM_DEFINES=$(ASM_DEFINES1) -DDEBUG=1 $(MTOPTION) $(MBCS_DEFINES)
!ENDIF
# Disable intrinsics on Alpha as it will not allow redefinition of intrinsics
ALPHA_OPTIMIZATION=/Ox /Oi-
|