From b18d3256609b2e5298613a57347b7b5f0a2ea164 Mon Sep 17 00:00:00 2001 From: richinseattle Date: Wed, 26 Jul 2023 22:58:48 -0700 Subject: [PATCH] add windows build commands --- Makefile | 4 ++++ build_msvc.bat | 1 + 2 files changed, 5 insertions(+) create mode 100644 build_msvc.bat 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