Move dynutil/h to common/h; move common/h to common/src. Update CMakeLists.txt
[dyninst.git] / scripts / dynsysname
1 #!/bin/bash
2
3 P=$1
4
5 # i386/Linux, x86-64/Linux, ppc/Linux, ppc64/Linux
6 if [ ${P/linux/} != ${P} ]; then
7 if [ ${P/i686/} != ${P} ]; then
8 PLATFORM=i386-unknown-linux2.4
9 fi
10 if [ ${P/i586/} != ${P} ]; then
11 PLATFORM=i386-unknown-linux2.4
12 fi
13 if [ ${P/i486/} != ${P} ]; then
14 PLATFORM=i386-unknown-linux2.4
15 fi
16 if [ ${P/i386/} != ${P} ]; then
17 PLATFORM=i386-unknown-linux2.4
18 fi
19 if [ ${P/x86_64/} != ${P} ]; then
20 PLATFORM=x86_64-unknown-linux2.4
21 fi
22 if [ ${P/ppc64/} != ${P} ]; then
23 PLATFORM=ppc64_linux
24 fi
25 if [ ${P/powerpc64/} != ${P} ]; then
26 PLATFORM=ppc64_linux
27 fi
28 if [ ${P/powerpc-/} != ${P} ]; then
29 PLATFORM=ppc32_linux
30 fi
31 if [ ${P/ppc-/} != ${P} ]; then
32 PLATFORM=ppc32_linux
33 fi
34
35 # Freebsd
36 elif [ ${P/freebsd/} != ${P} ]; then
37 if [ ${P/i686/} != ${P} ]; then
38 PLATFORM=i386-unknown-freebsd7.2
39 fi
40 if [ ${P/i586/} != ${P} ]; then
41 PLATFORM=i386-unknown-freebsd7.2
42 fi
43 if [ ${P/i486/} != ${P} ]; then
44 PLATFORM=i386-unknown-freebsd7.2
45 fi
46 if [ ${P/i386/} != ${P} ]; then
47 PLATFORM=i386-unknown-freebsd7.2
48 fi
49 if [ ${P/x86_64/} != ${P} ]; then
50 PLATFORM=amd64-unknown-freebsd7.2
51 fi
52
53
54 # VxWorks
55 elif [ ${P/vxworks/} != ${P} ]; then
56 if [ ${P/i686/} != ${P} ]; then
57 PLATFORM=i386-unknown-vxworks6.x
58 fi
59 if [ ${P/i586/} != ${P} ]; then
60 PLATFORM=i386-unknown-vxworks6.x
61 fi
62 if [ ${P/i486/} != ${P} ]; then
63 PLATFORM=i386-unknown-vxworks6.x
64 fi
65 if [ ${P/i386/} != ${P} ]; then
66 PLATFORM=i386-unknown-vxworks6.x
67 fi
68 if [ ${P/powerpc-/} != ${P} ]; then
69 PLATFORM=ppc32-unknown-vxworks6.x
70 fi
71 fi
72
73 echo $PLATFORM