diff --git a/Makefile b/Makefile index 1ef49da..c906b08 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,10 @@ runfast: run.c runomp: run.c $(CC) -Ofast -fopenmp -march=native run.c -lm -o run +.PHONY: win64 +win64: + x86_64-w64-mingw32-gcc-win32 -Ofast -D_WIN32 -o run.exe -I. run.c win.c + .PHONY: clean clean: rm -f run diff --git a/build_msvc.bat b/build_msvc.bat new file mode 100644 index 0000000..74d5803 --- /dev/null +++ b/build_msvc.bat @@ -0,0 +1 @@ +cl.exe /Ox /openmp /I. run.c win.c