summaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-28 00:18:53 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-28 00:18:53 +0330
commite9d373a154f538ef316940a142f652dba1a9bea6 (patch)
tree1330afde6a7e695e6e334f12483c732eca90314e /compile
initial commit
Diffstat (limited to 'compile')
-rwxr-xr-xcompile12
1 files changed, 12 insertions, 0 deletions
diff --git a/compile b/compile
new file mode 100755
index 0000000..dc0dea7
--- /dev/null
+++ b/compile
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+project_name="atui"
+
+if [ ! -d build ]; then
+ if [ $(mkdir build) ]; then # if error
+ echo "cannot make 'build' dir"
+ exit
+ fi
+fi
+
+gcc -Wall -Wextra -O3 src/main.c src/ui/tui.c -o "build/$project_name"