96 lines
2.7 KiB
Modula-2
96 lines
2.7 KiB
Modula-2
####
|
|
#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-
|