m 1017 Bytes
Newer Older
jcaceres's avatar
jcaceres committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#####################################
APP_NAME=jacktrip
APP_NAME_QUOTES=\\\"$APP_NAME\\\"
 
######################################
# Created by Chris Chafe
# Modified by Juan-Pablo Caceres to include a make install option to build and RPM, and to make it work with any shell.
 
# QMAKE_CLEAN cleans up ui, killing dependencies involving 
# generated base classes
# don't --> make clean

14
15
16
#rm -r obj
#rm -r moc
#rm $APP_NAME.pro
jcaceres's avatar
jcaceres committed
17

18
#echo "progen"
jcaceres's avatar
jcaceres committed
19

20
21
#qmake -project -o $APP_NAME.pro ui/ ../include/
qmake -project -o $APP_NAME.pro
jcaceres's avatar
jcaceres committed
22

23
echo "qmake .pro built"
jcaceres's avatar
jcaceres committed
24

25
#Create Makefile
jcaceres's avatar
jcaceres committed
26
27
28
29
30
qmake -makefile -unix -o Makefile \
"CONFIG+=qt thread warn_on debug" \
"QMAKE_CXXFLAGS+=-Wno-deprecated -pg -g" \
"INCLUDEPATH+=/usr/include/stk ../include $QTDIR/include/qwt" \
"DEFINES+=__LINUX_ALSA__ APP_NAME=$APP_NAME_QUOTES" \
jcaceres's avatar
jcaceres committed
31
"QMAKE_CLEAN+=$APP_NAME" \
jcaceres's avatar
jcaceres committed
32
33
34
35
36
37
"unix:LIBS+=-Xlinker -rpath $QTDIR/lib -lstk -lasound -ljack -lqwt" \
"unix:TARGET=$APP_NAME" \
"unix:target.path=/usr/bin" \
"unix:INSTALLS+=target" $APP_NAME.pro

echo "done"