-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·46 lines (33 loc) · 1.36 KB
/
Makefile
File metadata and controls
executable file
·46 lines (33 loc) · 1.36 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
# Root configuration
ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs)
# set the compiler options
CXX = g++ #use g++ as compiler
CXXFLAGS = -g -O -Wall -fPIC #set compiler options
#-g compile with debug information
#-O optimize
#-Wall show warnings for everything
#-fPIC compile source file as sharable object
# set the linker options
LD = g++ #use g++ for linking
LDFLAGS = -O #-O optimize
CXXFLAGS += $(ROOTCFLAGS)
CXX_FLAGS += -O0 -g3 -fno-inline
DCACHELIBS = -lDCache -ldcap
ADDITIONALLIBS = -lFoam -lRooFitCore -lRooFit -lHtml -lGenVector -lboost_regex -lTMVA -lMinuit -lXMLIO -lMLP -lTreePlayer #-lCLHEP
LIBS = $(ROOTLIBS) $(SYSLIBS) $(ADDITIONALLIBS)
PROJECT = SpinCor
OBJ = $(PROJECT).o ConfigReader.o Collector.o PEBuilder.o Linearity.o Matching.o
# compile all programs
all: $(PROJECT)
$(PROJECT): $(OBJ)
$(LD) $(LDFLAGS) $(OBJ) $(LIBS) -o $(PROJECT)
%.o: %.cc %.h
$(CXX) $(CXXFLAGS) -c $<
%.o: ConfigReader/%.cc ConfigReader/%.h
$(CXX) $(CXXFLAGS) -c $<
#%.o: TreeProducer.cc TreeProducer.h
# $(CXX) $(CXXFLAGS) -c $<
PHONY : clean
clean:
@rm -rf *.o *~