#!/bin/bash # This file should be identical in all projects. See documentation # under "usage" below. usage(){ cat < options must be used. _O_FILES="$_O_FILES $THIS_OBJ_PATH" done # only for pc file if exists for irrlicht: #if [ -z "$PKG_CONFIG_PATH" ]; then # PKG_CONFIG_PATH=$IRR_PATH #else # PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$IRR_PATH #fi #gcc -o build/$BIN_NAME $_I_FILES $(pkg-config --libs --cflags irrlicht --cflags freetype2) #^ can't find a pc file # gcc -o build/$BIN_NAME $_I_FILES -I$FT2_INCDIR if [ -f "$$OUT_BIN" ]; then mv "$OUT_BIN" "$OUT_BIN.BAK" if [ $? -ne 0 ]; then echo "Error: 'mv \"$OUT_BIN\" \"$OUT_BIN.BAK\"' failed.." exit 1 fi fi g++ -o $OUT_BIN $_O_FILES -lIrrlicht -lX11 -lGL -lXxf86vm -lXcursor -lstdc++fs -lfreetype if [ $? -ne 0 ]; then cat <