From 650d9dfd05d68090f424bf369a05cfa0213f138c Mon Sep 17 00:00:00 2001 From: Guy Perfect Date: Wed, 30 Oct 2024 09:52:33 -0500 Subject: [PATCH] Add util to makefile --- makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/makefile b/makefile index d7f86ba..659176f 100644 --- a/makefile +++ b/makefile @@ -10,6 +10,7 @@ help: @echo "Available make targets:" @echo " clean Remove output files" @echo " core Check the C core source for compiler warnings" + @echo " util Check the C utility source for compiler warnings" @echo " wasm Build the WebAssembly module" @echo @@ -47,6 +48,17 @@ util: # GCC generic @gcc util/vbu.c -I core -I util -c -o /dev/null -O3 \ -Werror -std=c90 -Wall -Wextra -Wpedantic -fno-strict-aliasing +# GCC compilation control + @gcc util/vbu.c -I core -I util -c -o /dev/null -O3 \ + -Werror -std=c90 -Wall -Wextra -Wpedantic -fno-strict-aliasing \ + -D VB_SIGNED_PROPAGATE -D VBU_REALLOC=testRealloc +# Clang generic + @emcc util/vbu.c -I core -I util -c -o /dev/null -O3 \ + -Werror -std=c90 -Wall -Wextra -Wpedantic -fno-strict-aliasing +# Clang compilation control + @emcc util/vbu.c -I core -I util -c -o /dev/null -O3 \ + -Werror -std=c90 -Wall -Wextra -Wpedantic -fno-strict-aliasing \ + -D VB_SIGNED_PROPAGATE -D VBU_REALLOC=testRealloc .PHONY: wasm wasm: