-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 1.57 KB
/
Makefile
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
49
50
MYFIT_OBJECTS=myFit.o control.o wave.o event.o likelihood.o 3j.o fitInfo.o dict.o
MASSDEP_OBJECTS=massDep.o bw.o fitInfo.o fitModel.o wave.o event.o dict.o
PREDICT_OBJECTS=predict.o bw.o wave.o event.o fitInfo.o dict.o
MOMENTS_OBJECTS=moments.o 3j.o wave.o event.o dict.o fitInfo.o
OBJECTS=${MYFIT_OBJECTS} ${MASSDEP_OBJECTS} ${PREDICT_OBJECTS} ${MOMENTS_OBJECTS}
DEBUGFLAGS=-g -fopenmp
LDFLAGS=${DEBUGFLAGS}
CXXFLAGS:=-Wall ${DEBUGFLAGS} -O2 $(shell root-config --cflags)
LIBS:=$(shell root-config --libs --cflags) -lMinuit2 -lMathMore
all: myFit massDep predict moments
.PHONY: all
myFit: ${MYFIT_OBJECTS}
g++ -o $@ ${LDFLAGS} ${MYFIT_OBJECTS} ${LIBS}
massDep: ${MASSDEP_OBJECTS}
g++ -o $@ ${LDFLAGS} ${MASSDEP_OBJECTS} ${LIBS}
predict: ${PREDICT_OBJECTS}
g++ -o $@ ${LDFLAGS} ${PREDICT_OBJECTS} ${LIBS}
moments: ${MOMENTS_OBJECTS}
g++ -o $@ ${LDFLAGS} ${MOMENTS_OBJECTS} ${LIBS}
.PHONY: clean
clean:
rm -f ${OBJECTS}
rm -f dict.cc dict.h
rm -f myFit massDep predict moments
.cc.o:
g++ -c ${CXXFLAGS} $< -o $@
dict.o: dict.cc
dict.cc: fitInfo.h wave.h startingValue.h LinkDef.h
rootcint -f $@ -c wave.h fitInfo.h LinkDef.h
myFit.o: myFit.cc control.h wave.h likelihood.h gHist.h startingValue.h fitInfo.h
massDep.o: massDep.cc bw.h startingValue.h fitInfo.h fitModel.h
predict.o: predict.cc bw.h
moments.o: moments.cc 3j.h wave.h
control.o: control.cc control.h
wave.o: wave.cc wave.h event.h
event.o: event.cc event.h
likelihood.o: likelihood.cc likelihood.h event.h wave.h
3j.o: 3j.cc wave.h
fitInfo.o: fitInfo.cc fitInfo.h startingValue.h
fitModel.o: fitModel.cc fitModel.h bw.h