/[TIS-4000 Rel T60]/scripts/buildsnl
ViewVC logotype

Contents of /scripts/buildsnl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations)
Tue Apr 10 18:56:32 2001 UTC (22 years, 5 months ago) by tis4000
Branch: MAIN
CVS Tags: SPR801, Duluth_baseline, HEAD
Changes since 1.2: +5 -9 lines
SPR 801
Do not reverence /usr/include. - zigalov

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

  ViewVC Help
Powered by ViewVC 1.1.30