Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions NT_MAKEFILE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for Windows (Win32/64). Assumes Microsoft compiler.
# Should be invoked as "nmake -f NT_MAKEFILE [<args>]"; the optional arguments
# are: "cpu=AMD64" - to target x64, "cpu=i386" - to target x86,
# "cpu=ARM64" - to target Windows on ARM64,
# "enable_static=1" - to build it as a static library, "nodebug=1" - to produce
# the release variant of the library, "disable_threads=1" - to build the
# library and the tests without threads support.
Expand All @@ -16,6 +17,8 @@ CPU = $(PROCESSOR_ARCHITECTURE)
CPU = i386
!ELSEIF "$(CPU)" == "X64" || "$(CPU)" == "x64" || "$(CPU)" == "amd64"
CPU = AMD64
!ELSEIF "$(CPU)" == "arm64" || "$(CPU)" == "AARCH64" || "$(CPU)" == "aarch64"
CPU = ARM64
!ENDIF

!IF !DEFINED(NMAKE_WINVER)
Expand All @@ -27,6 +30,8 @@ cflags = $(cflags) -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -GS -D_WINNT -W4
cflags = $(cflags) -D_X86_=1 -DWIN32 -D_WIN32
!ELSEIF "$(CPU)" == "AMD64"
cflags = $(cflags) -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32
!ELSEIF "$(CPU)" == "ARM64"
cflags = $(cflags) -D_ARM64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32
!ENDIF
cflags = $(cflags) -D_WIN32_WINNT=$(NMAKE_WINVER) -DWINVER=$(NMAKE_WINVER)

Expand All @@ -46,6 +51,8 @@ ldebug = /DEBUG /DEBUGTYPE:cv
CVTRES_CPU=X86
!ELSEIF "$(CPU)" == "AMD64"
CVTRES_CPU=X64
!ELSEIF "$(CPU)" == "ARM64"
CVTRES_CPU=ARM64
!ENDIF

!IFNDEF NODEBUG
Expand Down
Loading