-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
executable file
·37 lines (31 loc) · 1.81 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/sh
input=$1
output=$2
if [ -z $1 ]; then
echo "Please specify the source file you want to compile"
exit
fi
if [ -z $2 ]; then
output=a.out
fi
cflags=`sh $ROOTSYS/bin/root-config --cflags`
libs=`sh $ROOTSYS/bin/root-config --libs`
glibs=`sh $ROOTSYS/bin/root-config --glibs`
cxxflags="-g -fPIC -Wno-deprecated -O -ansi -D_GNU_SOURCE -g -O2"
cxx="-m32"
g++ MassFitFunction.cc -c -o MassFitFunction.o $libs $cflags $cxx $cxxflags
g++ MassAnaInput.cc -c -o MassAnaInput.o $libs $cflags $cxx $cxxflags
g++ MassAna.cc -c -o MassAna.o $libs $cflags $cxx $cxxflags $glibs
g++ AlgoZero.cc -c -o AlgoZero.o $libs $cflags $cxx $cxxflags $glibs
g++ AlgoKcon.cc -c -o AlgoKcon.o $libs $cflags $cxx $cxxflags $glibs
g++ JES.cc -c -o JES.o $libs $cflags $cxx $cxxflags $glibs
g++ MassAnaOutput.cc -c -o MassAnaOutput.o $libs $cflags $cxx $cxxflags $glibs
g++ HadWMassFitter.cc -c -o HadWMassFitter.o $libs $cflags $cxx $cxxflags $glibs -lMinuit
g++ LepTopMassFitter.cc -c -o LepTopMassFitter.o $libs $cflags $cxx $cxxflags $glibs -lMinuit
g++ PseudoExp.cc -c -o PseudoExp.o $libs $cflags $cxx $cxxflags $glibs
g++ WAnalysis.cc -c -o WAnalysis.o $libs -lMinuit $cflags $cxx $cxxflags $glibs
g++ ObjectInfo.cc -c -o ObjectInfo.o $libs -lMinuit $cflags $cxx $cxxflags $glibs
g++ XSection.cc -c -o XSection.o $libs -lMinuit $cflags $cxx $cxxflags $glibs
g++ BgEstimation.cc -c -o BgEstimation.o $libs -lMinuit $cflags $cxx $cxxflags $glibs
g++ $input -o $output MassFitFunction.o MassAnaInput.o MassAna.o AlgoZero.o AlgoKcon.o JES.o MassAnaOutput.o HadWMassFitter.o LepTopMassFitter.o PseudoExp.o WAnalysis.o ObjectInfo.o XSection.o BgEstimation.o $libs $cflags $cxx $cxxflags $glibs -lMinuit
#g++ $input -o $output MassFitFunction.o MassAnaInput.o MassAna.o AlgoZero.o AlgoKcon.o JES.o MassAnaOutput.o PseudoExp.o $libs $cflags $cxx $cxxflags