10 lines
345 B
Makefile
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
|