File: makefile.static

package info (click to toggle)
fastjet 3.4.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,552 kB
  • sloc: cpp: 78,628; python: 6,112; sh: 1,038; fortran: 673; makefile: 636; ansic: 161
file content (48 lines) | stat: -rw-r--r-- 2,159 bytes parent folder | download | duplicates (2)
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