aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-27 15:49:50 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-27 15:49:50 +0200
commit0a96fcfbd083b4b06b0baf8aa94b7449107973a7 (patch)
tree1f95261484c984c814dd9412b2a0e01f14b02ff7 /Makefile
parentb0a848ab4df53ef32b7207a6ce2c07264365cc5b (diff)
downloadcherry-0a96fcfbd083b4b06b0baf8aa94b7449107973a7.tar.gz
cherry-0a96fcfbd083b4b06b0baf8aa94b7449107973a7.zip
Add PROFILE variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aa65c5d..4acbd40 100644
--- a/Makefile
+++ b/Makefile
@@ -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}