]> git.uio.no Git - u/mrichter/AliRoot.git/blame - OADB/PROOF-INF.OADB/SETUP.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / OADB / PROOF-INF.OADB / SETUP.C
CommitLineData
a18817ac 1Int_t SETUP()
37196805 2{
a18817ac 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
128d41d2 13 const char* oadbPath = gSystem->Getenv("OADB_PATH");
14 if (!oadbPath || oadbPath[0] == '\0')
15 gSystem->Setenv("OADB_PATH", "OADB");
a18817ac 16
8bfe3849 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
a18817ac 21 // We're happy
22 return 0;
23
37196805 24}