From 9182b4898f19b90e00a8754f65a349d0c25bac00 Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Fri, 18 Mar 2016 12:47:10 +0300 Subject: [PATCH] allow 64-bit build --- Makefile.wnm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.wnm b/Makefile.wnm index 2e1cb60..cd84a3b 100644 --- a/Makefile.wnm +++ b/Makefile.wnm @@ -3,15 +3,21 @@ #### Start of system configuration section. #### +# Target architectire +# use nmake -f Makefile.wnm ARCH=X64 to override this definition +# Environment variable arch would not override it. +# +ARCH=I386 + CC = cl # Normal flags CFLAGS = /nologo /MD /W3 /EHsc /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c -LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386 +LDFLAGS = /nologo /subsystem:console /incremental:no /machine:$(ARCH) # Debugging flags #CFLAGS = /nologo /MDd /W3 /GX /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c -#LDFLAGS = /nologo /subsystem:console /incremental:yes /debug /machine:I386 +#LDFLAGS = /nologo /subsystem:console /incremental:yes /debug /machine:$(ARCH) LD = link LIBS = user32.lib -- 2.39.2