Add build scripts

This commit is contained in:
Abdelrahman Said 2023-12-30 19:08:50 +00:00
parent 0ba206e28f
commit 8dc280e22b
2 changed files with 12 additions and 0 deletions

3
build Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
bear -- ./compile

9
compile Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
CC=clang
CFLAGS="-g"
LIBS="-lm"
$CC $CFLAGS -I01_no_metaprogramming ./01_no_metaprogramming/*.c $LIBS -o 01_vec_no_metaprogramming
$CC $CFLAGS -I02_macros ./02_macros/*.c $LIBS -o 02_vec_macros
$CC $CFLAGS -I03_xmacros ./03_xmacros/*.c $LIBS -o 03_vec_xmacros