Various small fixes. Make sure Emacs knows it's C++ mode, and the like.
[u/mrichter/AliRoot.git] / FMD / scripts / Compile.C
1 //
2 // $Id$
3 //
4 // Script to compile (using ACLic) and load a script.  It sets the
5 // include path to contain the relevant directories. 
6 //
7 void
8 Compile(const char* script, Option_t* option="g")
9 {
10   gSystem->Load("libFMDutil.so");
11   gSystem->SetIncludePath("-I`root-config --incdir` "
12                           "-I${ALICE_ROOT}/include " 
13                           "-I${ALICE_ROOT}/FMD "
14                           "-I${ALICE_ROOT}/geant3/TGeant3");
15   gROOT->ProcessLine(Form(".L %s+%s", script, option));
16 }
17
18 //____________________________________________________________________
19 //
20 // EOF
21 //