5 alias usage 'echo "USAGE: $0:t [-h] [-n] [gmake-flag...] [VAR=...] [toolname (default: opt)]"; set pstatus = 1; goto cleanup'
12 while ( !( $?options_done ) && ($#argv > 0))
18 shift argv; set MFILE = $argv[1]; shift argv; breaksw
20 set doit = 0; shift argv; breaksw
22 set GMAKE_OPTS = ( $GMAKE_OPTS $argv[1] ); shift argv; breaksw
24 set optarg = `echo -n $argv[1] | sed 's/^[^=]*$//'`
26 set GMAKE_OPTS = ( $GMAKE_OPTS $optarg )
36 echo 'ERROR: More than one tool is not supported by "makellvm"'
43 ## Compute LLVMDIR: the root of the current LLVM tree.
44 ## It is recorded in the variable LEVEL in Makefile, to compute it
47 if (-f GNUmakefile) then
48 set MFILE = GNUmakefile
49 else if (-f makefile) then
56 echo "Missing or invalid makefile: $MFILE"
60 set LLVMDIR = `awk '/LEVEL[ ]*=/ {print $NF}' $MFILE`
62 if ($?LLVMDIR == 0 || ! -d $LLVMDIR) then
63 echo "Unable to find LEVEL or LEVEL is invalid ($LEVEL)"
67 set CMD = "gmake $GMAKE_OPTS && (cd $LLVMDIR/tools/$EXEC && gmake $GMAKE_OPTS)"
72 echo '(NOT EXECUTING) COMMAND:'
77 #=========================================================
78 # CODE TO BE EXECUTED IF INTERRUPT IS RECEIVED
79 #=========================================================