2013-05-10 15:40:49 +00:00
|
|
|
BUILDMODE=release
|
2012-01-28 17:24:19 +00:00
|
|
|
BUILDPATH=./build/${BUILDMODE}
|
2013-04-27 19:41:57 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
all:build
|
|
|
|
|
|
|
|
dirs:
|
|
|
|
mkdir -p ${BUILDPATH}
|
|
|
|
|
|
|
|
makefiles:dirs
|
|
|
|
ifeq (${BUILDMODE}, release)
|
|
|
|
@+cd ${BUILDPATH} && qmake ../../src/paysages.pro -r -spec linux-clang
|
|
|
|
else
|
|
|
|
@+cd ${BUILDPATH} && qmake ../../src/paysages.pro -r -spec linux-clang CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
|
2013-04-27 19:41:57 +00:00
|
|
|
endif
|
2012-01-28 17:24:19 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
build:makefiles
|
|
|
|
@+cd ${BUILDPATH} && $(MAKE)
|
2013-08-22 21:45:46 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
clean:makefiles
|
|
|
|
@+cd ${BUILDPATH} && $(MAKE) clean
|
2013-08-23 22:50:12 +00:00
|
|
|
ifeq (${BUILDMODE}, release)
|
2013-10-06 21:04:04 +00:00
|
|
|
make BUILDMODE=debug clean
|
2013-08-23 22:50:12 +00:00
|
|
|
endif
|
2013-04-16 14:57:14 +00:00
|
|
|
|
2013-07-03 10:08:03 +00:00
|
|
|
docs:
|
|
|
|
doxygen Doxyfile
|
|
|
|
|
2013-05-10 15:40:49 +00:00
|
|
|
debug:
|
2013-08-22 21:45:46 +00:00
|
|
|
+make BUILDMODE=debug all
|
2013-05-10 15:40:49 +00:00
|
|
|
|
2012-01-28 17:24:19 +00:00
|
|
|
release:
|
2013-08-22 21:45:46 +00:00
|
|
|
+make BUILDMODE=release all
|
2011-12-25 21:19:32 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
tests:build
|
|
|
|
LD_LIBRARY_PATH=${BUILDPATH}/rendering CK_DEFAULT_TIMEOUT=30 ${BUILDPATH}/testing/paysages-tests
|
2013-04-20 11:28:56 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
run_cli:build
|
|
|
|
LD_LIBRARY_PATH=${BUILDPATH}/rendering ${RUNNER} ${BUILDPATH}/controlling/paysages-cli
|
2012-01-10 20:51:27 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
run:build
|
|
|
|
LD_LIBRARY_PATH=${BUILDPATH}/rendering:${BUILDPATH}/exploring ${RUNNER} ${BUILDPATH}/editing/paysages-gui
|
2011-12-23 22:00:19 +00:00
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
profile:debug
|
|
|
|
LD_LIBRARY_PATH=build/debug/rendering:build/debug/exploring perf record -g fp ./build/debug/paysages-gui
|
2013-08-17 13:11:21 +00:00
|
|
|
perf report -g
|
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
profile_cli:debug
|
|
|
|
LD_LIBRARY_PATH=build/debug/rendering perf record -g fp ./build/debug/paysages-cli
|
2013-08-17 13:11:21 +00:00
|
|
|
perf report -g
|
2012-04-22 17:12:39 +00:00
|
|
|
|
2013-06-16 17:06:10 +00:00
|
|
|
install:release
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib
|
|
|
|
mkdir -p ${DESTDIR}/usr/share/paysages3d
|
2013-10-06 21:04:04 +00:00
|
|
|
cp build/release/editing/paysages-gui ${DESTDIR}/usr/bin/paysages3d
|
|
|
|
cp build/release/exploring/libpaysages_exploring.so ${DESTDIR}/usr/lib/
|
|
|
|
cp build/release/rendering/libpaysages_rendering.so ${DESTDIR}/usr/lib/
|
2013-06-16 17:06:10 +00:00
|
|
|
cp data/.paysages_data ${DESTDIR}/usr/share/paysages3d/
|
|
|
|
cp -r data/i18n ${DESTDIR}/usr/share/paysages3d/
|
|
|
|
cp -r data/images ${DESTDIR}/usr/share/paysages3d/
|
|
|
|
cp cache/*.cache ${DESTDIR}/usr/share/paysages3d/
|
|
|
|
|
|
|
|
deb:
|
2013-06-21 10:51:40 +00:00
|
|
|
apt-get install pbuilder build-essential check libdevil-dev libglib2.0-dev qt4-dev-tools
|
2013-06-16 17:06:10 +00:00
|
|
|
DEBFULLNAME="Michael Lemaire" DEBEMAIL=paysages@thunderk.net dch -i -p -u low -D stable
|
|
|
|
debuild -b -us -uc
|
|
|
|
|
2013-10-06 21:04:04 +00:00
|
|
|
.PHONY:all clean release build
|