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

19 lines
298 B
Bash
Executable file

#!/bin/bash
FLAGS="-Wall -std=c++11"
LIBS=("libpng")
NAME="mkCharmap"
SRCS=("mkCharmap.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}