From 682a16e14f0954baecfb386758cbb9a5487ea087 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said <said.abdelrahman89@gmail.com> Date: Fri, 22 Mar 2024 00:25:17 +0000 Subject: [PATCH] Add build scripts --- build | 3 +++ compile | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 build create mode 100644 compile diff --git a/build b/build new file mode 100644 index 0000000..8e1e5c1 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +bear -- ./compile diff --git a/compile b/compile new file mode 100644 index 0000000..fbb9b9f --- /dev/null +++ b/compile @@ -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)