File:  [TIS-4000 Rel T60] / scripts / buildudb
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
#
#	The "programs" directory contains all user written udb programs
#	The "programs" directory also contains the udbStubs.c program
#	The "tasks" directory contains all TIS4000 programs and utilities
#	The "compilers" directory contains all required udb compilers
#	The "headers" directory contains all the TIS4000 header files
#		
#
#
set tis4000 = /tis4000	# TIS4000 Root directory
set tasks = $tis4000/tasks
set udb = $tis4000/udb		# TIS4000 udb Directory Root
set programs = $udb/programs
set headers = $tasks/headers
# set c_headers = /usr/include
set c_headers = $tasks/headers
set compilers = $tasks/compilers/M30
set apple = $tis4000/apple
#
#
pushd $udb > /dev/console	# Let's move to the proper udb directory
		# and remember our CWD
#
$compilers/gcc -B$compilers -c -nostdinc \
	-I$headers \
	-I$c_headers \
	-I$programs \
	-DCPU=MC68030 $programs/$1.c
#
# Move the compiled sudb program into the proper ioc directory
#
'mv' $1.o $apple/$2
#
popd > /dev/console	# Let's go back to the orginal working directory

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