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:
11
lib/Makefile
11
lib/Makefile
@ -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
|
||||
|
||||
Reference in New Issue
Block a user