From fa90cc9b783054bff22670af03d7b174fd371994 Mon Sep 17 00:00:00 2001 From: Vladyslav Hrytsenko Date: Sun, 18 Sep 2022 16:19:59 +0300 Subject: [PATCH] misc: updated makefile to support selective app building --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b33d93c..d1c615b 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,9 @@ test: code/tests/unit apps: $(APPS) @echo '> Building apps' +app: code/apps/$(NAME) + @echo '> Building app $(NAME)' + web: emcc $(LEVEL) -s WASM=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap"]' \ -DLIBRG_EMSCRIPTEN=1 -I code/ code/apps/library.c -o build/librg.js @@ -56,12 +59,12 @@ endif % : %.c @mkdir -p build - @echo '=> Building $(@F)' + @echo '> Building $(@F)' $(CC) $(CFLAGS) $^ $(LDFLAGS) -o build/$(@F) % : %.cc @mkdir -p build - @echo '=> Building $(@F)' + @echo '> Building $(@F)' $(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o build/$(@F) .SILENT: