Add build scripts

This commit is contained in:
Abdelrahman Said 2024-03-22 00:25:17 +00:00
parent a56f6ad9c2
commit 682a16e14f
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 -Wall -Werror "
XORSHIFT_SRC="xorshift.c ppm.c"
XORSHIFT_OUT=xorshift
(set -x ; $CC $CFLAGS $XORSHIFT_SRC -o $XORSHIFT_OUT)