]> git.uio.no Git - u/mrichter/AliRoot.git/blob - OADB/PROOF-INF.OADB/SETUP.C
test
[u/mrichter/AliRoot.git] / OADB / PROOF-INF.OADB / SETUP.C
1 Int_t SETUP()
2 {
3   // load library
4   gSystem->Load("libOADB");
5
6   // set include path
7   gROOT->ProcessLine(".include OADB");
8
9   // Set our location, so that other packages can find us
10   gSystem->Setenv("OADB_INCLUDE", "OADB");
11   
12   // path for the root files
13   const char* oadbPath = gSystem->Getenv("OADB_PATH");
14   if (!oadbPath || oadbPath[0] == '\0')
15     gSystem->Setenv("OADB_PATH", "OADB");
16
17   // Set our lib coordinates, so that other packages can link to us
18   TString lib = TString::Format("-L%s -lOADB", gSystem->WorkingDirectory());
19   gSystem->Setenv("OADB_LIBS", lib.Data());
20
21   // We're happy
22   return 0;
23
24 }