diff options
author | 2023-05-27 15:49:50 +0200 | |
---|---|---|
committer | 2023-05-27 15:49:50 +0200 | |
commit | 0a96fcfbd083b4b06b0baf8aa94b7449107973a7 (patch) | |
tree | 1f95261484c984c814dd9412b2a0e01f14b02ff7 | |
parent | b0a848ab4df53ef32b7207a6ce2c07264365cc5b (diff) | |
download | cherry-0a96fcfbd083b4b06b0baf8aa94b7449107973a7.tar.gz cherry-0a96fcfbd083b4b06b0baf8aa94b7449107973a7.zip |
Add PROFILE variable
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | scripts/buildmk.sh | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -7,7 +7,7 @@ DIST_DIR = build/dist OBJ = ${BUILD_DIR}/cherry.o ${BUILD_DIR}/main.o ${BUILD_DIR}/window.o ${BUILD_DIR}/application.o ${BUILD_DIR}/event.o ${BUILD_DIR}/widget.o INCLUDES != find src -name '*.h' -all: static shared +all: ${PROFILE} dist: all mkdir -p ${DIST_DIR}/include/cherry @@ -17,6 +17,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} 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} |