From: Victor Wagner Date: Fri, 18 Mar 2016 09:47:10 +0000 (+0300) Subject: allow 64-bit build X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=oss%2Fless.git;a=commitdiff_plain;h=9182b4898f19b90e00a8754f65a349d0c25bac00 allow 64-bit build --- 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