diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 00:18:53 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 00:18:53 +0330 |
commit | e9d373a154f538ef316940a142f652dba1a9bea6 (patch) | |
tree | 1330afde6a7e695e6e334f12483c732eca90314e /compile |
initial commit
Diffstat (limited to 'compile')
-rwxr-xr-x | compile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |