win32/64: msys2 support

Support ./configure && make under msys2 (a new msys fork)
on win32 and win64.

Get rid of CONFIG_WIN64 make-var. (On windows, WIN32 in
general is used for both 32 and 64 bit platforms)

Also:
- cleanup win32/build-tcc.bat
- adjust win32/(doc/)tcc-win32.tx
This commit is contained in:
grischka
2016-10-02 01:39:07 +02:00
parent 49d3118621
commit f350487e1e
5 changed files with 27 additions and 29 deletions

View File

@ -8,11 +8,12 @@ VPATH = $(TOPSRC)/lib $(TOPSRC)/win32/lib
ifndef TARGET
# we're building the native libtcc1.a
ifdef CONFIG_WIN64
TARGET = x86_64-win32
# using tcc
else ifdef CONFIG_WIN32
TARGET = i386-win32
ifdef CONFIG_WIN32
ifeq ($(ARCH),x86-64)
TARGET = x86_64-win32
else
TARGET = i386-win32
endif
# using tcc
else ifeq ($(ARCH),i386)
TARGET = i386