File: bootstrap

package info (click to toggle)
icmake 6.22-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,120 kB
  • ctags: 1,045
  • sloc: ansic: 9,241; makefile: 1,138; asm: 126; sh: 124
file content (48 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (2)
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

echo "
    This script assumes that the GCC compiler is available, and that
    the function glob() is available in the gcc-runtime library.
    If that's not the case, remove the -DHAVE_GLOB define from the 
    gcc flags.
"                                     

echo    Building the runtime-library in ./rss
cd rss
gcc -c -O -DHAVE_GLOB *.c
ar rsv libicrss.a *.o
rm *.o
cd ..

echo Creating the target directory ./bin
mkdir -p bin

echo Creating icmake
cd make
gcc -O -DHAVE_GLOB -o ../bin/icmake *.c ../rss/libicrss.a

echo Creating icm-pp
cd ../pp
gcc -O -DHAVE_GLOB -o ../bin/icm-pp *.c ../rss/libicrss.a

echo Creating icm-comp
cd ../comp
gcc -O -DHAVE_GLOB -o ../bin/icm-comp *.c ../rss/libicrss.a

echo Creating icm-exec
cd ../exec
gcc -O -DHAVE_GLOB -o ../bin/icm-exec *.c ../rss/libicrss.a
cd ../un

echo Creating icmun
gcc -O -DHAVE_GLOB -o ../bin/icmun *.c ../rss/libicrss.a
cd ..  

echo Stripping the binaries
cd bin
strip *

cd ..

echo "
    Done.
"