-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-acetao.sh
executable file
·47 lines (39 loc) · 1.39 KB
/
build-acetao.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
ACE_ROOT=`pwd`/ACE
TAO_ROOT=`pwd`/TAO
MPC_ROOT=`pwd`/MPC
LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
export QTDIR=/usr
export ACE_ROOT=$ACE_ROOT
export TAO_ROOT=$TAO_ROOT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
cd $ACE_ROOT
# configure ACE/TAO build
echo '#include "ace/config-linux.h"' > ace/config.h
echo include $ACE_ROOT/include/makeinclude/platform_linux.GNU > \
include/makeinclude/platform_macros.GNU
echo 'qt4 = 1' >> include/makeinclude/platform_macros.GNU
echo 'ace_qt4reactor = 1' >> include/makeinclude/platform_macros.GNU
echo 'ace_for_tao = 1' >> include/makeinclude/platform_macros.GNU
echo 'qos = 1' >> include/makeinclude/platform_macros.GNU
echo "INSTALL_PREFIX = /usr" >> include/makeinclude/platform_macros.GNU
echo "LDFLAGS += -fPIC" >> include/makeinclude/platform_macros.GNU
echo "CFLAGS += -fPIC" >> include/makeinclude/platform_macros.GNU
echo "CXXFLAGS += -fPIC" >> include/makeinclude/platform_macros.GNU
# setup tree as expected by Makefiles
unlink MPC
ln -s $MPC_ROOT MPC
unlink TAO
ln -s $TAO_ROOT TAO
# generate makefiles
cp $ACE_ROOT/bin/MakeProjectCreator/config/* $MPC_ROOT/config/
cp $ACE_ROOT/bin/MakeProjectCreator/modules/* $MPC_ROOT/modules/
$ACE_ROOT/bin/mwc.pl -type gnuace $TAO_ROOT/TAO_ACE.mwc
# build
make -j1
cd TAO
make -j1
# install
sudo ACE_ROOT=$ACE_ROOT TAO_ROOT=$TAO_ROOT make install
cd -
sudo ACE_ROOT=$ACE_ROOT TAO_ROOT=$TAO_ROOT make install