File:  [TIS-4000 Rel T60] / scripts / buildsnl
Revision 1.3: download - view: text, annotated - select for diffs
Tue Apr 10 18:56:32 2001 UTC (16 years, 8 months ago) by tis4000
Branches: MAIN
CVS tags: SPR801, HEAD, Duluth_baseline
SPR 801
Do not reverence /usr/include. - zigalov

#!/bin/csh
#
#	Setting up directory structure.
#	This can be different between systems
#
#	The "programs" directory contains all user written snl programs
#	The "tasks" directory contains all TIS4000 programs and utilities
#	The "compilers" directory contains all required snl compilers
#	The "snl" variable set the home directory of the snl directory tree
#	The "headers" directory contains all the TIS4000 header files
#		
#
#
set tis4000 = ~	# TIS4000 Root directory
set tasks = $tis4000/tasks
set snl = $tis4000/snl		# TIS4000 SNL Directory Root
set programs = $snl/programs
set headers = $tasks/headers
set c_headers = $tasks/headers # /usr/include
set compilers = $tasks/compilers/M30
set apple = $tis4000/apple
#
#
pushd $snl	# Let's move to the proper snl directory
		# and remember our CWD
#
$compilers/cpp -I$headers -I$c_headers $programs/$1.st >$programs/$1.i 
#
$tasks/snc +r $programs/$1.i
#
$compilers/gcc -B$compilers -c -nostdinc \
	-I$headers \
	-I$c_headers \
	-I$programs \
	-DCPU=MC68030 $programs/$1.c
#
# Move the compiled snl program into the proper ioc directory
#
'mv' $1.o $apple/$2
'rm' $programs/*.c $programs/*.i $programs/*.*%
#
popd	# Let's go back to the orginal working directory

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>