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 38 39 40 41 42 43 44 45 46 47 48
|
#CXXFLAGS = -Wall -O3 -march=i686
#CXXFLAGSmidpoint = -Wall -O3 -march=i686
include ../../../makefile.static
# fastjet includes
CXXFLAGS += -I../../../include
# with gcc's midpoint can be a lot slower with optimization than without;
# accordingly we have a special CXXFLAGS for the midpoint algorithm to
# eliminate any (de)optimization
CXXFLAGSmidpoint = -I../../../include
all : libJetAlgs.a
CalTower.o : CalTower.cc CalTower.hh
$(CXX) $(CXXFLAGS) -c CalTower.cc
Centroid.o : Centroid.cc Centroid.hh
$(CXX) $(CXXFLAGS) -c Centroid.cc
Cluster.o : Cluster.cc Cluster.hh CalTower.hh Centroid.hh LorentzVector.hh PhysicsTower.hh
$(CXX) $(CXXFLAGS) -c Cluster.cc
ClusterComparisons.o : ClusterComparisons.cc ClusterComparisons.hh CalTower.hh Centroid.hh Cluster.hh LorentzVector.hh PhysicsTower.hh
$(CXX) $(CXXFLAGS) -c ClusterComparisons.cc
JetCluAlgorithm.o : JetCluAlgorithm.cc JetCluAlgorithm.hh CalTower.hh Centroid.hh Cluster.hh ClusterComparisons.hh LorentzVector.hh PhysicsTower.hh
$(CXX) $(CXXFLAGS) -c JetCluAlgorithm.cc
LorentzVector.o : LorentzVector.cc LorentzVector.hh
$(CXX) $(CXXFLAGS) -c LorentzVector.cc
#MidPointAlgorithm.o : MidPointAlgorithm.cc MidPointAlgorithm.hh CalTower.hh Centroid.hh Cluster.hh ClusterComparisons.hh LorentzVector.hh PhysicsTower.hh
# $(CXX) $(CXXFLAGS) -c MidPointAlgorithm.cc
# below we use the special CXXFLAGS designed for the midpoint case
MidPointAlgorithm.o : MidPointAlgorithm.cc MidPointAlgorithm.hh CalTower.hh Centroid.hh Cluster.hh ClusterComparisons.hh LorentzVector.hh PhysicsTower.hh
$(CXX) $(CXXFLAGSmidpoint) -c MidPointAlgorithm.cc
PhysicsTower.o : PhysicsTower.cc PhysicsTower.hh CalTower.hh LorentzVector.hh
$(CXX) $(CXXFLAGS) -c PhysicsTower.cc
libJetAlgs.a : CalTower.o Centroid.o Cluster.o ClusterComparisons.o JetCluAlgorithm.o LorentzVector.o MidPointAlgorithm.o PhysicsTower.o
ar rs libJetAlgs.a CalTower.o Centroid.o Cluster.o ClusterComparisons.o JetCluAlgorithm.o LorentzVector.o MidPointAlgorithm.o PhysicsTower.o
clean:
rm -f CalTower.o Centroid.o Cluster.o ClusterComparisons.o JetCluAlgorithm.o LorentzVector.o MidPointAlgorithm.o PhysicsTower.o libJetAlgs.a
|