aboutsummaryrefslogtreecommitdiff
path: root/win32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'win32/Makefile')
-rw-r--r--win32/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/Makefile b/win32/Makefile
index 0636deb..854aa93 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -34,6 +34,10 @@ all: pre bootstrap libs rebuild
@ls -ls *.exe
pre:
+ @echo ARCH=x86-64 1> ../config.mak
+ @echo TARGETOS=Windows 1>> ../config.mak
+ @echo CONFIG_WIN32=yes 1>> ../config.mak
+ @echo TOPSRC=$$\(TOP\) 1>> ../config.mak
@echo "#define TCC_VERSION \"$(VERSION)\"" 1>../config.h
@echo "#ifdef TCC_TARGET_X86_64" 1>>../config.h
@echo "#define CONFIG_TCC_LIBPATHS \"{B}/lib/64;{B}/lib\"" 1>>../config.h
@@ -110,6 +114,11 @@ rebuild:
PHONY += rebuild
+test:
+ @(cd ../tests/tests2; $(MAKE) -k TCC=../../win32/tcc)
+
+PHONY += test
+
TARNAME = tcc-$(VERSION)-$(PREFIX)-win32
tarball: