2002-09-15 16:33:32 +00:00
|
|
|
#!/bin/csh -f
|
|
|
|
|
2002-09-15 16:58:30 +00:00
|
|
|
## LLVMDIR is simply the directory where this script resides!
|
2002-09-18 23:22:27 +00:00
|
|
|
set thisExec = $0 ## cannot use :h on $0 for some reason
|
|
|
|
set LLVMDIR = `echo {$thisExec:h} | sed 's/\/utils$//'`
|
2002-09-15 16:33:32 +00:00
|
|
|
set EXEC = opt
|
|
|
|
|
|
|
|
if ($#argv > 0) then
|
2002-09-15 18:22:47 +00:00
|
|
|
if ($argv[1] == "-h") then
|
2002-09-15 16:58:30 +00:00
|
|
|
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
|
|
|
exit 0
|
|
|
|
endif
|
2002-09-15 18:22:47 +00:00
|
|
|
set EXEC = $argv[1]
|
2002-09-15 16:33:32 +00:00
|
|
|
endif
|
|
|
|
|
2002-09-18 23:22:27 +00:00
|
|
|
gmake && (cd $LLVMDIR/tools/$EXEC && gmake)
|