blob: f7ee7de1500530cfa12a762ad863df8f1fd42d5d [file] [log] [blame]
Vikram S. Adve631484c2002-09-15 16:33:32 +00001#!/bin/csh -f
2
Vikram S. Adve0731d542002-09-15 16:58:30 +00003 ## LLVMDIR is simply the directory where this script resides!
Vikram S. Adved3448cd2002-09-18 23:22:27 +00004set thisExec = $0 ## cannot use :h on $0 for some reason
5set LLVMDIR = `echo {$thisExec:h} | sed 's/\/utils$//'`
Vikram S. Adve631484c2002-09-15 16:33:32 +00006set EXEC = opt
7
8if ($#argv > 0) then
Vikram S. Adve2d456602002-09-15 18:22:47 +00009 if ($argv[1] == "-h") then
Vikram S. Adve0731d542002-09-15 16:58:30 +000010 echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
11 exit 0
12 endif
Vikram S. Adve2d456602002-09-15 18:22:47 +000013 set EXEC = $argv[1]
Vikram S. Adve631484c2002-09-15 16:33:32 +000014endif
15
Vikram S. Adved3448cd2002-09-18 23:22:27 +000016gmake && (cd $LLVMDIR/tools/$EXEC && gmake)