m 704 Bytes
Newer Older
jcaceres's avatar
jcaceres committed
1
2
3
4
5
6
7
#!/bin/bash
#####################################
APP_NAME=jmess
######################################
## Created by Juan-Pablo Caceres

#Cleanup
8
9
10
#rm $APP_NAME.pro
#rm Makefile
#echo "cleanup done"
jcaceres's avatar
jcaceres committed
11
12
13
14
15
16
17
18

#Create project (.pro) file
qmake-qt4 -project -o $APP_NAME.pro

echo "qmake-qt4 .pro built."

#Create Makefile
qmake-qt4 -makefile -unix -o Makefile \
jcaceres's avatar
jcaceres committed
19
"CONFIG += debug warn_on" \
jcaceres's avatar
jcaceres committed
20
21
"QMAKE_CXXFLAGS += -Wno-deprecated -pg -g" \
"QT += xml" \
jcaceres's avatar
jcaceres committed
22
"QT -= gui" \
jcaceres's avatar
jcaceres committed
23
"QMAKE_CLEAN += $APP_NAME" \
jcaceres's avatar
jcaceres committed
24
"unix:LIBS +=/usr/lib/libjack.a -lpthread" \
jcaceres's avatar
jcaceres committed
25
26
27
"unix:TARGET = $APP_NAME" \
"unix:target.path = /usr/bin" \
"unix:INSTALLS += target" $APP_NAME.pro
jcaceres's avatar
jcaceres committed
28
29

echo "done"
jcaceres's avatar
jcaceres committed
30
31
32

## Use this to use realease mode
#"CONFIG += release warn_on" \