fb888/tools/mkBitmap.sh
2020-11-16 14:08:41 +01:00

19 lines
296 B
Bash
Executable file

#!/bin/bash
FLAGS="-Wall -std=c++11"
LIBS=("libpng")
NAME="mkBitmap"
SRCS=("mkBitmap.cpp")
for i in ${LIBS[@]}
do
LIBS_+="$(pkg-config --libs "${i}") "
done
for i in ${SRCS[@]}
do
SRCS_+="$(find "${i}" -maxdepth 1 | grep -E ".cpp|.hpp") "
done
g++ ${SRCS_} ${FLAGS} ${LIBS_[@]} -o ${NAME}