summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile.build b/Makefile.build
new file mode 100644
index 0000000..01e6f93
--- /dev/null
+++ b/Makefile.build
@@ -0,0 +1,37 @@
1-include ../../Rules.make
2
3ENV_SETUP ?= ../../linux-devkit/environment-setup
4DESTDIR ?=
5PLATFORM ?=
6PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
7
8SOURCES = main.cpp matrix_browser.pro
9
10all: debug release
11
12qmake : matrix_browser.pro
13 @. ${ENV_SETUP}; \
14 qmake2 CONFIG+=debug_and_release QMAKE_CXXFLAGS_DEBUG+=-D${PLATFORM_DEFINE} QMAKE_CXXFLAGS_RELEASE+=-D${PLATFORM_DEFINE} matrix_browser.pro
15
16debug : ${SOURCES} qmake
17 @. ${ENV_SETUP}; \
18 make -f Makefile debug
19
20release : ${SOURCES} qmake
21 @. ${ENV_SETUP}; \
22 make -f Makefile release
23
24clean : ${SOURCES} qmake
25 @. ${ENV_SETUP}; \
26 make -f Makefile distclean
27
28install: release
29 @install -d ${DESTDIR}/usr/bin
30 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
31 echo "matrix_browser release version installed."
32
33install_debug: debug
34 @install -d ${DESTDIR}/usr/bin
35 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
36 echo "matrix_browser debug version installed."
37