-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
31 lines (23 loc) · 842 Bytes
/
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
ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIB = $(shell root-config --libs) -lMinuit
CXXFLAGS = -g -I.
CXXFLAGS += -Wno-long-long -fPIC
CXXFLAGS += $(shell root-config --cflags)
LDFLAGS = $(ROOTLIB)
LDFLAGS += -lHistFactory -lRooStats -lRooFit -lRooFitCore
OBJS := $(wildcard Root/*.C)
OBJS += $(wildcard style/*.C)
#style/FccStyle.C style/FccLabels.C
# external stuff
# can use RootCore, but keep like this to make it portable
# OBJS += ../TopDataPreparation/Root/SampleXsection.o
# CXXFLAGS += -I../RootCoreBin/include
CXXFLAGS += -I${ROOTSYS}/include -L${ROOTSYS}/lib
%.o: %.C
g++ -c $(CXXFLAGS) -o $@ $<
all: myFit.exe # this is the default executable
%.exe: util/%.o $(OBJS)
echo $@
g++ $(CXXFLAGS) -o $@ $(patsubst %.exe,%.o,util/$@) $(OBJS) $(LDFLAGS)
clean:
rm -rf *.exe *.o Root/*.o util/*.o