clab/make/utils.mk
2025-01-02 17:54:37 +00:00

10 lines
345 B
Makefile

# Define an example function
define compile_source
@for file in $? ; do \
path=$$(echo "$$file" | cut -f 2 -d '/'); \
out=$$(echo "$$path" | cut -f 1 -d '.'); \
echo ${CC} ${CFLAG_DEBUG} -o ${BIN_DIR}/$$out.c.debug.${ARCH_X86} $$file; \
${CC} ${CFLAG_DEBUG} -o ${BIN_DIR}/$$out.c.debug.${ARCH_X86} $$file -lpthread;\
done
endef