]> www.wagner.pp.ru Git - oss/less.git/blobdiff - Makefile.wnm
Removed code page operation. Fix GLOB macros for 64-bit win32. Fixed debug flags...
[oss/less.git] / Makefile.wnm
index 2e1cb60ac4dbc8083dc52bc2fe35cab4d327f0fe..8a6ddb4c93260180706fb12506644c1e6faaffb4 100644 (file)
@@ -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
+#CFLAGS = /nologo /MDd /W3 /EHsc /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
+#LDFLAGS = /nologo /subsystem:console /incremental:yes /debug /machine:$(ARCH)
 
 LD = link
 LIBS = user32.lib