summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..d6a0f2b
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+mkdir -p ./build/artifact
+filename=$1
+filename="${filename%.*}"
+./ctc $1 build/artifact/$filename.asm
+nasm -f elf64 -o ./build/artifact/$filename.o ./build/artifact/$filename.asm
+gcc -o ./build/$filename ./build/artifact/$filename.o
+