-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·64 lines (46 loc) · 1.66 KB
/
Makefile
File metadata and controls
executable file
·64 lines (46 loc) · 1.66 KB
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
54
55
56
57
58
# Makefile for G0 Analysis Code
# (modified version of $(ROOTSYS)/test/Makefile)
#
# March 3, 2000 Author: W. Korsch
# April 25, 2000 E. Beise, modify to work with Alpha DUX4.0
ObjSuf = o
SrcSuf = C
ExeSuf =
DllSuf = so
EVENTLIB = $(EVENTO)
OutPutOpt = -o
OFFICIAL =UCNA_Official_Replay
EXE = analyzer
ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs) -lNew -lMinuit -lSpectrum
ROOTGLIBS = $(shell root-config --glibs)
MYOS := $(subst -,,$(shell uname))
# Linux with egcs
ifeq ($(MYOS),Linux)
CXX = gcc
CXXFLAGS = -O3 -Wall -fPIC -g
LD = gcc
LDFLAGS = -g
SOFLAGS = -shared
INCLUDEPATH = -Iincludes -I${OFFICIAL}/IOUtils -I${OFFICIAL}/RootUtils -I${OFFICIAL}/BaseTypes -I${OFFICIAL}/MathUtils -I${OFFICIAL}/Calibration -I${OFFICIAL}/Analysis -I${OFFICIAL}/Studies -I${OFFICIAL}/Physics -I/usr/include/mysql
CXXFLAGS += $(ROOTCFLAGS) $(INCLUDEPATH)
LIBS = $(ROOTLIBS) -L${OFFICIAL} #-lUCNA
GLIBS = $(ROOTGLIBS)
LIBS += -lstdc++ -lz -lRMySQL
endif
#####################################################################
#
# Generic compilation and linking step to make an executable from
# a single *.C file
#
%: src/%.$(SrcSuf) %.h
$(CXX) $(CXXFLAGS) $(LIBS) -o $@ $< $(LIBS) $(GLIBS)
OBJ = src/analysis.o src/Run.o src/Beta_Run.o src/Bck_Run.o src/Octet.o src/analysisMathFunc.o
clean:
@rm -f $(OBJ) *~ core
cleanall:
@rm -f $`(OBJ) $(EXE) *~ core
INCPATH ="includes"
all: analyzer
analyzer: $(OBJ)
$(CXX) $(CXXFLAGS) -o analyzer $(LIBS) $(OBJ) src/analysisPlottingFunc.C -L $(LIBS) $(GLIBS)