aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2016-05-20 15:48:02 +0300
committerseyko <seyko2@gmail.com>2016-05-20 15:48:02 +0300
commit18cbe62e69863e185a69ba7349a5a08f94afecd7 (patch)
tree5874d2ad9225919977a981e69c797816554b73de /Makefile
parent824b1b582fc3ef9fb571df68326c7d3ffe411cc4 (diff)
downloadtinycc-18cbe62e69863e185a69ba7349a5a08f94afecd7.tar.gz
tinycc-18cbe62e69863e185a69ba7349a5a08f94afecd7.tar.bz2
fix a mingw64 build on Linux with --enable-tcc64-mingw
* define CONFIG_WIN64=yes when ARCH=x86-64 (not CONFIG_WIN32=yes) * CONFIG_WIN64 now use a windows install part (not a Linux one)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c092370..1488c1b 100644
--- a/Makefile
+++ b/Makefile
@@ -271,10 +271,17 @@ else
INSTALLBIN=$(INSTALL)
endif
+ifdef CONFIG_WIN32
+CONFIG_WIN=yes
+endif
+ifdef CONFIG_WIN64
+CONFIG_WIN=yes
+endif
+
install-strip: install
strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))
-ifndef CONFIG_WIN32
+ifndef CONFIG_WIN
install: $(PROGS) $(TCCLIBS) $(TCCDOCS)
mkdir -p "$(bindir)"
$(INSTALLBIN) -m755 $(PROGS) "$(bindir)"