-
Notifications
You must be signed in to change notification settings - Fork 92
/
genMakefiles
executable file
·61 lines (51 loc) · 1.36 KB
/
genMakefiles
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
usage() {
echo "Usage: $0 <os-platform>"
exit 1
}
if [ $# -ne 1 ]
then
usage $*
fi
if [ -f "Makefile" ]; then
make clean
fi
cd myRtspClient
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../example
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../third_party/Base64_live555
/bin/rm -f Makefile
cat Makefile.head ../../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../../third_party/md5
/bin/rm -f Makefile
cat Makefile.head ../../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../../third_party/JRTPLIB
/bin/rm -f Makefile
/bin/rm -f myRtspClientConfig/cmake_config_build.$1
mkdir -p build
cd myRtspClientConfig
perl config_$1\.pl ../../../config.$1 ../CMakeLists.txt_backup
cd ..
# cat myRtspClientConfig/cmake_config_build.$1 CMakeLists.txt_backup > CMakeLists.txt
cat Makefile.head ../../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../../third_party/JTHREAD
/bin/rm -f Makefile
/bin/rm -f myRtspClientConfig/cmake_config_build.$1
mkdir -p build
cd myRtspClientConfig
perl config_$1\.pl ../../../config.$1 ../CMakeLists.txt_backup
cd ..
cat Makefile.head ../../config.$1 Makefile.tail > Makefile
chmod a-w Makefile
cd ../../
/bin/rm -f Makefile
cat Makefile.head config.$1 Makefile.tail > Makefile
chmod a-w Makefile