2014-10-23 02:46:42 -04:00
|
|
|
#!/usr/bin/zsh
|
2014-10-01 22:39:58 -04:00
|
|
|
project_root=$(dirname $(pwd))
|
2014-10-23 02:46:42 -04:00
|
|
|
for f in ${project_root}/src/*.c ${project_root}/extlib/benz/*.c ${project_root}/contrib/**/*.c;do
|
|
|
|
cc -c -O2 -pg -std=c99 -I${project_root}/extlib/benz/include $f -o `basename $f`.o &
|
2014-10-01 22:39:58 -04:00
|
|
|
done
|
|
|
|
wait
|
2014-10-23 02:46:42 -04:00
|
|
|
cc main.c.o $(find . -maxdepth 1 -name '*.o' | grep -v main.c.o | grep -v load_piclib.c.o | grep -v init_contrib.c.o) load_piclib.c.o init_contrib.c.o \
|
|
|
|
-O2 -I${project_root}/extlib/benz/include -std=c99 -pg -lm -lreadline -o picrin
|
2014-10-01 22:39:58 -04:00
|
|
|
rm *.o
|