From bddde3398a6e7a3bc388b2c07f4f4ce45603b265 Mon Sep 17 00:00:00 2001 From: Aydyn Tairov Date: Thu, 27 Jul 2023 14:38:28 +0100 Subject: [PATCH] add Makefile option to support builds on amazon linux & centos --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index c906b08..41f6ef9 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,15 @@ runomp: run.c win64: x86_64-w64-mingw32-gcc-win32 -Ofast -D_WIN32 -o run.exe -I. run.c win.c +# compiles with gnu99 standard flags for amazon linux, coreos, etc. compatibility +.PHONY: rungnu +rungnu: + $(CC) -Ofast -std=gnu11 -o run run.c -lm + +.PHONY: runompgnu +rungnu: + $(CC) -Ofast -fopenmp -std=gnu11 run.c -lm -o run + .PHONY: clean clean: rm -f run