Add util to makefile
This commit is contained in:
@@ -10,6 +10,7 @@ help:
|
|||||||
@echo "Available make targets:"
|
@echo "Available make targets:"
|
||||||
@echo " clean Remove output files"
|
@echo " clean Remove output files"
|
||||||
@echo " core Check the C core source for compiler warnings"
|
@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 " wasm Build the WebAssembly module"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
@@ -47,6 +48,17 @@ util:
|
|||||||
# GCC generic
|
# GCC generic
|
||||||
@gcc util/vbu.c -I core -I util -c -o /dev/null -O3 \
|
@gcc util/vbu.c -I core -I util -c -o /dev/null -O3 \
|
||||||
-Werror -std=c90 -Wall -Wextra -Wpedantic -fno-strict-aliasing
|
-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
|
.PHONY: wasm
|
||||||
wasm:
|
wasm:
|
||||||
|
|||||||
Reference in New Issue
Block a user