From 0a96fcfbd083b4b06b0baf8aa94b7449107973a7 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 27 May 2023 15:49:50 +0200 Subject: Add PROFILE variable --- scripts/buildmk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/buildmk.sh') diff --git a/scripts/buildmk.sh b/scripts/buildmk.sh index 2e14c92..c94e2e2 100755 --- a/scripts/buildmk.sh +++ b/scripts/buildmk.sh @@ -22,7 +22,7 @@ DIST_DIR = ${DIST_DIR} OBJ = $OBJ INCLUDES != find $SRC_DIR -name '*.h' -all: static shared +all: \${PROFILE} dist: all mkdir -p \${DIST_DIR}/include/cherry @@ -32,6 +32,8 @@ dist: all debug: debug-static debug-shared +release: static shared + static: @make BUILD_DIR=\${BUILD_DIR}/release/static \${BUILD_DIR}/release/static/\${LIBNAME:=.a} -- cgit v1.2.3