-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·28 lines (22 loc) · 857 Bytes
/
Copy pathcompile.sh
File metadata and controls
executable file
·28 lines (22 loc) · 857 Bytes
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
#! /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"
cxxflags="-g -fPIC -Wall -O -ansi -D_GNU_SOURCE -g -O2"
cxx="-m64"
g++ AnaInput.cc -c -o AnaInput.o $libs $cflags $cxx $cxxflags
g++ DPSelection.cc -c -o DPSelection.o $libs $cflags $cxx $cxxflags
g++ TestGen.cc -c -o TestGen.o $libs $cflags $cxx $cxxflags
g++ Trigger.cc -c -o Trigger.o $libs $cflags $cxx $cxxflags
g++ hDraw.cc -c -o hDraw.o $libs $cflags $cxx $cxxflags
g++ $input -o $output AnaInput.o DPSelection.o TestGen.o Trigger.o hDraw.o $libs $cflags $cxx $cxxflags $glibs