aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 22:12:45 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 22:12:45 +0200
commit17a2cd72bac228a7cdcd91ce2a4a1d58d8aa8d0a (patch)
tree84e024d949a7b93fa07dee05e6f13cfb56e299e8 /Makefile
parent0a96fcfbd083b4b06b0baf8aa94b7449107973a7 (diff)
downloadcherry-17a2cd72bac228a7cdcd91ce2a4a1d58d8aa8d0a.tar.gz
cherry-17a2cd72bac228a7cdcd91ce2a4a1d58d8aa8d0a.zip
Add target to copy includes in build directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4acbd40..4dcf9d2 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,9 @@ dist: all
cp ${BUILD_DIR}/release/shared/${LIBNAME:=.so} ${DIST_DIR}/
cp ${INCLUDES} ${DIST_DIR}/include/cherry
-debug: debug-static debug-shared
+debug: debug-static debug-shared copy-includes
-release: static shared
+release: static shared copy-includes
static:
@make BUILD_DIR=${BUILD_DIR}/release/static ${BUILD_DIR}/release/static/${LIBNAME:=.a}
@@ -28,6 +28,10 @@ shared:
debug-static:
@make BUILD_DIR=${BUILD_DIR}/debug/static OPT=-g ${BUILD_DIR}/debug/static/${LIBNAME:=.a}
+copy-includes:
+ @mkdir -p ${BUILD_DIR}/include/cherry
+ @cp ${INCLUDES} ${BUILD_DIR}/include/cherry
+
debug-shared:
@make BUILD_DIR=${BUILD_DIR}/debug/shared OPT="-g -fPIC" ${BUILD_DIR}/debug/shared/${LIBNAME:=.so}