1 |
#!/bin/csh |
2 |
# |
3 |
# Setting up directory structure. |
4 |
# This can be different between systems |
5 |
# |
6 |
# The "programs" directory contains all user written snl programs |
7 |
# The "tasks" directory contains all TIS4000 programs and utilities |
8 |
# The "compilers" directory contains all required snl compilers |
9 |
# The "snl" variable set the home directory of the snl directory tree |
10 |
# The "headers" directory contains all the TIS4000 header files |
11 |
# |
12 |
# |
13 |
# |
14 |
set tis4000 = ~ # TIS4000 Root directory |
15 |
set tasks = $tis4000/tasks |
16 |
set snl = $tis4000/snl # TIS4000 SNL Directory Root |
17 |
set programs = $snl/programs |
18 |
set headers = $tasks/headers |
19 |
set c_headers = $tasks/headers # /usr/include |
20 |
set compilers = $tasks/compilers/M30 |
21 |
set apple = $tis4000/apple |
22 |
# |
23 |
# |
24 |
pushd $snl # Let's move to the proper snl directory |
25 |
# and remember our CWD |
26 |
# |
27 |
$compilers/cpp -I$headers -I$c_headers $programs/$1.st >$programs/$1.i |
28 |
# |
29 |
$tasks/snc +r $programs/$1.i |
30 |
# |
31 |
$compilers/gcc -B$compilers -c -nostdinc \ |
32 |
-I$headers \ |
33 |
-I$c_headers \ |
34 |
-I$programs \ |
35 |
-DCPU=MC68030 $programs/$1.c |
36 |
# |
37 |
# Move the compiled snl program into the proper ioc directory |
38 |
# |
39 |
'mv' $1.o $apple/$2 |
40 |
'rm' $programs/*.c $programs/*.i $programs/*.*% |
41 |
# |
42 |
popd # Let's go back to the orginal working directory |