Created
October 29, 2012 17:47
-
-
Save ghl3/3975167 to your computer and use it in GitHub Desktop.
Compile CERN ROOT script using g++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CXX=`root-config --cxx` | |
| CXXFLAGS=`root-config --cflags` | |
| LDFLAGS=`root-config --ldflags` | |
| LDLIBS=`root-config --glibs` | |
| ROOTLIBS='-lRooFit -lHtml -lMinuit -lRooFitCore -lRooStats -lHistFactory' | |
| # Assumes that the script is in MyScript.C | |
| # and it must contain a main() function | |
| all: MyScript | |
| % : %.C | |
| g++ -g -Wall `root-config --cflags --libs` -L$(ROOTSYS)/lib $(ROOTLIBS) $? -o $@ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment