comparison 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
comparison
equal deleted inserted replaced
360:ade217fd76a5 361:4130ffdeb5c8
25 CC := $(BUILDTPREFIX)$(CC) 25 CC := $(BUILDTPREFIX)$(CC)
26 AR := $(BUILDTPREFIX)$(AR) 26 AR := $(BUILDTPREFIX)$(AR)
27 RANLIB := $(BUILDTPREFIX)$(RANLIB) 27 RANLIB := $(BUILDTPREFIX)$(RANLIB)
28 endif 28 endif
29 29
30 CPPFLAGS += -I lwlib -DPACKAGE_STRING='"lwtools 4.11+"' 30 CPPFLAGS += -I lwlib
31 LDFLAGS += -Llwlib -llw 31 LDFLAGS += -Llwlib -llw
32 32
33 CFLAGS ?= -O3 -Wall 33 CFLAGS ?= -O3 -Wall -Wno-char-subscripts
34 34
35 MAIN_TARGETS := lwasm/lwasm$(PROGSUFFIX) \ 35 MAIN_TARGETS := lwasm/lwasm$(PROGSUFFIX) \
36 lwlink/lwlink$(PROGSUFFIX) \ 36 lwlink/lwlink$(PROGSUFFIX) \
37 lwar/lwar$(PROGSUFFIX) \ 37 lwar/lwar$(PROGSUFFIX) \
38 lwlink/lwobjdump$(PROGSUFFIX) 38 lwlink/lwobjdump$(PROGSUFFIX)