Mercurial > hg > index.cgi
diff Makefile @ 361:4130ffdeb5c8
Add contributed support for building with Microsoft's compiler
Thanks to Erik G <erik@6809.org> for various updates to allow building with
Microsoft's compiler. These changes, in addition to some other generally
good fixups from other commits, include:
* move the version define to its own source file instead of as an option in
Makefile. This is better anyway.
* add some compatibilty stuff to lwlib
This support is minimally invasive so it should continue to work. However,
this is contributed code which I have no way to test.
author | William Astle <lost@l-w.ca> |
---|---|
date | Tue, 26 May 2015 17:53:51 -0600 |
parents | c6bd6e9bc6df |
children | 35d4213e6657 |
line wrap: on
line diff
--- a/Makefile Tue May 26 17:51:00 2015 -0600 +++ b/Makefile Tue May 26 17:53:51 2015 -0600 @@ -27,10 +27,10 @@ RANLIB := $(BUILDTPREFIX)$(RANLIB) endif -CPPFLAGS += -I lwlib -DPACKAGE_STRING='"lwtools 4.11+"' +CPPFLAGS += -I lwlib LDFLAGS += -Llwlib -llw -CFLAGS ?= -O3 -Wall +CFLAGS ?= -O3 -Wall -Wno-char-subscripts MAIN_TARGETS := lwasm/lwasm$(PROGSUFFIX) \ lwlink/lwlink$(PROGSUFFIX) \