-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
53 lines (39 loc) · 1.67 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
51
52
53
SYSTEM := $(shell uname -s)
ROOTI = -I${shell root-config --incdir}
ROOTL = ${shell root-config --glibs} -lSpectrum
DEBUGFLAG = -g3
GCC = g++ -fPIC
all: reader MCA_data.so calibrate apply_calibration analyse compare time_dep testDB activity activity_special
%.o: %.cxx %.h
${GCC} ${DEBUGFLAG} $^ -c ${ROOTI}
reader: reader.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
calibrate: calibrate.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
analyse: analyse.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
compare: compare.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
activity: activity.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
activity_special: activity_special.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
time_dep: time_dep.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
apply_calibration: apply_calibration.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
testDB: testDB.cxx MCA_dataDict.o MCA_data.o
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
MCA_dataDict.cxx MCA_dataDict.h: MCA_data.h MCA_dataLinkDef.h
rootcint -f $@ -c $(ROOTI) -p $^
cnf_reader: cnf_reader.C
${GCC} ${DEBUGFLAG} $^ -o $@ ${ROOTI} ${ROOTL}
MCA_data.so: MCA_dataDict.o MCA_data.o
ifeq ($(SYSTEM),Darwin)
$(GCC) -dynamiclib -single_module -O $^ $(FFTSL) -o $@ ${ROOTL}
# $(GCC) -bundle -flat_namespace -undefined suppress -o $@ -O $^
else
$(GCC) -shared -O $^ $(FFTSL) -o $@
endif
clean:
rm -f *Dict* *.o *.so reader apply_calibration analyse compare time_dep