-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMake.sh
More file actions
executable file
·24 lines (23 loc) · 795 Bytes
/
Make.sh
File metadata and controls
executable file
·24 lines (23 loc) · 795 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
#!/bin/sh
if [ ! $1 ] ; then
echo "Please specify the code you want to compile by typing :"
echo "./Make <Your-Code.C>"
exit 1
fi
echo "================================================================"
echo "====> Producing eventdict.cc and eventdict.h"
rootcint -f eventdict.cc -c interface/myevent.h interface/LinkDef.h
echo "====> Compiling $1 linked with eventdict.cc"
filename=`echo $1 | awk -F"." '{print $1}'`
exefilename=${filename}.exe
rm -f $exefilename
g++ $1 eventdict.cc -o $exefilename `root-config --cflags --glibs`
echo ""
if [ -e $exefilename ]; then
echo "====> Created exe file : "
ls -lrt $exefilename
echo "====> Done."
else
echo "====> Did not create the exe file!"
fi
echo "================================================================"