Branch
Hash :
fd779c11
Author :
Thomas de Grivel
Date :
2025-11-01T20:11:57
make install without libtool
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
## kc3
## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
all:
${MAKE} build
if ${HAVE_GCOV}; then ${MAKE} cov; fi
${MAKE} debug
if ${HAVE_ASAN}; then ${MAKE} asan; fi
include config.mk
include sources.mk
asan: ${PROG_ASAN}
build: ${PROG}
cov: ${PROG_COV}
debug: ${PROG_DEBUG}
fx: kc3_httpd
${MAKE} -C fx
fx_asan: ${PROG_ASAN}
${MAKE} -C fx asan
fx_cov: ${PROG_COV}
${MAKE} -C fx cov
fx_debug: ${PROG_DEBUG}
${MAKE} -C fx debug
gcovr:
gcovr --gcov-executable ${GCOV} --html-details kc3_httpd.html
gdb_fx: ${PROG_DEBUG}
cd fx && gdb ../${PROG_DEBUG}
gdb_fx_asan: ${PROG_ASAN}
cd fx && gdb ../${PROG_ASAN}
gdb_httpd: debug
if [ -f ${PROG_DEBUG}.core ]; then gdb ${PROG_DEBUG} ${PROG_DEBUG}.core; else gdb ${PROG_DEBUG}; fi
install:
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${DESTDIR}${prefix}/bin
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 kc3_httpd ${DESTDIR}${prefix}/bin/kc3_httpd
lldb_httpd: debug
if [ -f ${PROG_DEBUG}.core ]; then lldb ${PROG_DEBUG} ${PROG_DEBUG}.core; else lldb ${PROG_DEBUG}; fi
uninstall:
rm -f ${prefix}/bin/kc3_httpd
.PHONY: \
all \
asan \
cov \
debug \
fx \
fx_asan \
fx_cov \
fx_debug \
gdb_fx \
gdb_fx_asan \
gdb_httpd \
gdb_httpd_asan \
install \
lldb_fx \
lldb_fx_asan \
lldb_httpd \
lldb_httpd_asan \
update_sources \
uninstall