2012-01-28 17:24:19 +00:00
|
|
|
BUILDMODE=debug
|
|
|
|
BUILDPATH=./build/${BUILDMODE}
|
|
|
|
|
2011-12-23 22:00:19 +00:00
|
|
|
all:
|
2013-04-17 12:29:51 +00:00
|
|
|
@+cd src/rendering && make BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
@+cd src/exploring && make BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
@+cd src/controlling && make BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
@+cd src/editing && qmake "BUILDMODE=${BUILDMODE}" "PROJECT_PATH=${CURDIR}" && make
|
2013-04-20 11:28:56 +00:00
|
|
|
@+cd src/testing && make BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
2011-12-23 22:00:19 +00:00
|
|
|
|
|
|
|
clean:
|
2013-04-17 12:29:51 +00:00
|
|
|
cd src/rendering && make clean BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
cd src/exploring && make clean BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
cd src/controlling && make clean BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
|
|
|
cd src/editing && qmake "BUILDMODE=${BUILDMODE}" "PROJECT_PATH=${CURDIR}" && make clean
|
2013-04-20 11:28:56 +00:00
|
|
|
cd src/testing && make clean BUILDMODE=${BUILDMODE} PROJECT_PATH=${CURDIR}
|
2012-01-28 17:24:19 +00:00
|
|
|
rm -f ${BUILDPATH}/paysages-cli
|
2013-04-17 12:29:51 +00:00
|
|
|
rm -f ${BUILDPATH}/paysages-qt
|
2013-04-20 11:28:56 +00:00
|
|
|
rm -f ${BUILDPATH}/paysages-tests
|
2013-04-16 14:57:14 +00:00
|
|
|
rm -f ${BUILDPATH}/libpaysages_exploring.so
|
2013-04-17 12:29:51 +00:00
|
|
|
rm -f ${BUILDPATH}/libpaysages_rendering.so
|
2013-04-16 14:57:14 +00:00
|
|
|
|
2012-01-28 17:24:19 +00:00
|
|
|
release:
|
|
|
|
make BUILDMODE=release all
|
2011-12-25 21:19:32 +00:00
|
|
|
|
2013-04-20 11:28:56 +00:00
|
|
|
tests: all
|
|
|
|
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-tests
|
|
|
|
|
|
|
|
run_cli: all
|
2012-01-28 17:24:19 +00:00
|
|
|
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-cli
|
2012-01-10 20:51:27 +00:00
|
|
|
|
2013-04-20 11:28:56 +00:00
|
|
|
run_qt: all
|
2012-01-28 17:24:19 +00:00
|
|
|
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-qt
|
2011-12-23 22:00:19 +00:00
|
|
|
|
2012-04-22 17:12:39 +00:00
|
|
|
profile:
|
|
|
|
sudo opcontrol --setup --no-vmlinux --event=CPU_CLK_UNHALTED:3000000:0:1:1 --buffer-size=65536 --callgraph=5 --separate=none
|
|
|
|
sudo opcontrol --reset
|
|
|
|
sudo opcontrol --start
|
|
|
|
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-qt || true
|
|
|
|
sudo opcontrol --shutdown
|
|
|
|
opannotate --source --output-dir=annotated ${BUILDPATH}/libpaysages.so --base-dirs=. --search-dirs=lib_paysages
|
|
|
|
opreport -l ${BUILDPATH}/libpaysages.so -c -g | less
|
|
|
|
|
2012-01-28 17:24:19 +00:00
|
|
|
.PHONY:all clean release
|