19 lines
296 B
Bash
Executable file
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}
|