-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1.41 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
ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
#######################################
# -- DEFINE ARCH to something sensible!
#######################################
#
CXX = g++
CXXFLAGS = -g -Wall -fPIC
LD = g++
LDFLAGS = -g
SOFLAGS = -shared
CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS)
NGLIBS = $(ROOTGLIBS)
NGLIBS += -lMinuit
GLIBS = $(filter-out -lNew, $(NGLIBS))
TABLEPATH = /home/users/isuarez/Software/tableMaker
CXXFLAGS += -I$(TABLEPATH)
FWLIB = /home/users/isuarez/Software/MiniFWLite/libMiniFWLite.so
TABLELIB = $(TABLEPATH)/libSimpleTable.so
CopyBaby: CopyBaby.o MakeSmallBaby.o StopCMS3.o LinkDef_out.so
$(LD) $(LDFLAGS) -o CopyBaby CopyBaby.o MakeSmallBaby.o StopCMS3.o $(GLIBS) -lGenVector -lEG $(CORELIB) LinkDef_out.so -Wl,-rpath,./
CopyBaby.o: CopyBaby.C MakeSmallBaby.h
$(CXX) $(CXXFLAGS) -c CopyBaby.C
MakeSmallBaby.o: MakeSmallBaby.cc MakeSmallBaby.h
$(CXX) $(CXXFLAGS) -c MakeSmallBaby.cc
StopCMS3.o: StopCMS3.cc StopCMS3.h
$(CXX) $(CXXFLAGS) -c StopCMS3.cc
LinkDef_out.so: LinkDef.h
@rootcling -v -f LinkDef.cc -c -p Math/Vector4D.h LinkDef.h
$(CXX) $(CXXFLAGS) $(SOFLAGS) LinkDef.cc -o $@
.PHONY: clean
clean:
rm -v -f \
MakeSmallBaby \
*o *d *.so; echo "Done"