|
|
|
@ -9,7 +9,7 @@ fi |
|
|
|
|
if [ ! -f "pixelGameEngine.o" ] |
|
|
|
|
then |
|
|
|
|
printf "Pixel Game Engine compile object missing. Compiling for the first time..." |
|
|
|
|
g++ -c pixelGameEngine.cpp |
|
|
|
|
g++ ${CUSTOM_PARAMS} -c pixelGameEngine.cpp |
|
|
|
|
fi |
|
|
|
|
if [ "$1" = "test" ] |
|
|
|
|
then |
|
|
|
@ -21,7 +21,7 @@ then |
|
|
|
|
elif [ "$1" = "full" ] |
|
|
|
|
then |
|
|
|
|
echo "" > ./test/test.h |
|
|
|
|
g++ -c pixelGameEngine.cpp |
|
|
|
|
g++ ${CUSTOM_PARAMS} -c pixelGameEngine.cpp |
|
|
|
|
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
|
|
|
|
./${PROJECT_NAME} "$@" |
|
|
|
|
fi |
|
|
|
|