-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (20 loc) · 840 Bytes
/
Copy pathmakefile
File metadata and controls
23 lines (20 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#makefile
UROOT=-pthread -stdlib=libc++ -std=c++11 -m64 -I/Users/samueletorelli/Documents/root/build/include -L/Users/samueletorelli/Documents/root/build/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lpthread -stdlib=libc++ -lm -ldl
#
simulation: ScatteringDet.o EnergyLossDet.o Generator.o Detector.o
g++ -o simulation simulation.cpp ScatteringDet.o EnergyLossDet.o Generator.o $(UROOT)
#
Detector.o: Detector.cc
g++ -c Detector.cc $(UROOT)
#
Generator.o: Generator.cc
g++ -c Generator.cc $(UROOT)
#
ScatteringDet.o: ScatteringDet.cc Detector.o
g++ -c ScatteringDet.cc Detector.o $(UROOT)
#
EnergyLossDet.o: EnergyLossDet.cc Detector.o
g++ -c EnergyLossDet.cc Detector.o $(UROOT)
#
clean:
rm *.o