blob: ad92e5ac64d900e04ed33433fa3f93a00a9f3b89 [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!
4set THISEXEC = $0 ## cannot use :h on $0 for some reason
5set LLVMDIR = $THISEXEC:h
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
16gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)