minor build script tweak.

This commit is contained in:
othocaeS 2016-05-12 17:13:40 -04:00
parent 3bd8f6e0b9
commit 70b97d6b6c

View File

@ -1,6 +1,7 @@
#!/bin/bash
mkdir -p ../bin/
#g++ -c ${1}.cpp `libpng-config --cflags` -I shapelib-1.3.0/ -I png++-0.2.5/
g++ -c ${1}.cpp `libpng-config --cflags` -I png++-0.2.5/
g++ -o ../bin/${1} ${1}.o `libpng-config --ldflags`
source_name=`echo $1|sed 's/\.cpp$//'`
#g++ -c ${source_name}.cpp `libpng-config --cflags` -I shapelib-1.3.0/ -I png++-0.2.5/
g++ -c ${source_name}.cpp `libpng-config --cflags` -I png++-0.2.5/
g++ -o ../bin/${source_name} ${source_name}.o `libpng-config --ldflags`