From 86922ce67be4d8b9ec9c6cc2e36cc98e1eb42711 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 14 Aug 2021 19:06:00 +0300 Subject: [PATCH] move single translation unit build scripts into makefile --- build | 3 --- buildg | 3 --- debugBuild | 3 --- makefile | 9 ++++++++- 4 files changed, 8 insertions(+), 10 deletions(-) delete mode 100755 build delete mode 100755 buildg delete mode 100755 debugBuild diff --git a/build b/build deleted file mode 100755 index 10e38096..00000000 --- a/build +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -clang -std=gnu11 -O3 -Wall -Wno-microsoft-anon-tag -Wno-unused-function -fms-extensions -no-pie $@ -o BQN src/opt/single.c -lm -# gcc -std=gnu11 -O3 -Wall -Wno-parentheses -Wno-misleading-indentation -Wno-unused-function -fms-extensions -no-pie $@ -o BQN src/opt/single.c -lm diff --git a/buildg b/buildg deleted file mode 100755 index 52db7890..00000000 --- a/buildg +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -clang -std=gnu11 -O3 -g -Wall -Wno-microsoft-anon-tag -fms-extensions -no-pie -Wno-unused-function -fno-omit-frame-pointer $@ -o BQN src/opt/single.c -lm -# gcc -std=gnu11 -O3 -g -Wall -Wno-parentheses -Wno-misleading-indentation -Wno-unused-function -fms-extensions -no-pie -fno-omit-frame-pointer $@ -o BQN src/opt/single.c -lm diff --git a/debugBuild b/debugBuild deleted file mode 100755 index ed2370fb..00000000 --- a/debugBuild +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -clang -DDEBUG -std=gnu11 -g -Wall -Wno-microsoft-anon-tag -Wno-unused-function -fms-extensions -no-pie $@ -o BQN src/opt/single.c -lm -# gcc -DDEBUG -std=gnu11 -g -Wall -Wno-parentheses -Wno-misleading-indentation -Wno-unused-function -fms-extensions -no-pie $@ -o BQN src/opt/single.c -lm diff --git a/makefile b/makefile index fd8f342b..9146c82e 100644 --- a/makefile +++ b/makefile @@ -22,7 +22,14 @@ c: # custom b: gen - +single-o3: + $(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions $(CCFLAGS) -no-pie -O3 -o BQN src/opt/single.c -lm +single-o3g: + $(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions $(CCFLAGS) -no-pie -O3 -g -o BQN src/opt/single.c -lm +single-debug: + $(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions $(CCFLAGS) -no-pie -DDEBUG -g -o BQN src/opt/single.c -lm +single-c: + $(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions $(CCFLAGS) -no-pie $(f) -o BQN src/opt/single.c -lm # compiler setup