-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
53 lines (47 loc) · 1.75 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
export CXX = g++
export CXXFLAGS = -g -Wall -fPIC -DNO_ART -O2
export ROOTFLAGS = $(shell root-config --cflags)
export INCLUDE = -I$(HDF5_INC)
INCLUDE += -I$(GENIE_INC)/GENIE
INCLUDE += -I$(LOG4CPP_INC)
INCLUDE += -I$(EDEPSIM_INC)/EDepSim
#INCLUDE += -I$(NUSYST) -I$(NUSYST)/build/systematicstools/src/systematicstools
#INCLUDE += -I$(NUSYST)/build/Linux/include/
INCLUDE += -I$(BOOST_INC)
INCLUDE += -I$(CETLIB_INC)
INCLUDE += -I$(CETLIB_EXCEPT_INC)
INCLUDE += -I$(FHICLCPP_INC)
INCLUDE += -I$(DUNEANAOBJ_INC)
INCLUDE += -I$src
export LDLIBS += -L$(LOG4CPP_LIB) -llog4cpp
LDLIBS += -L$(TBB_LIB) -ltbb
LDLIBS += -L$(LIBXML2_FQ_DIR)/lib -lxml2
LDLIBS += -L$(HDF5_LIB) -lhdf5_cpp
LDLIBS += -L$(PYTHIA6) -lPythia6
#LDLIBS += -L$(NUSYST)/build/Linux/lib -lsystematicstools_utility -lsystematicstools_interpreters -lsystematicstools_interface -lsystematicstools_systproviders
#LDLIBS += -L$(NUSYST)/build/nusystematics/artless -lnusystematics_systproviders
LDLIBS += -L$(DUNEANAOBJ_LIB) -lduneanaobj_StandardRecord -lduneanaobj_StandardRecordFlat
LDLIBS += -L$(GSL_LIB) -lgsl -lgslcblas
LDLIBS += -L$(LHAPDF_LIB) -lLHAPDF
LDLIBS += $(shell genie-config --libs)
LDLIBS += $(shell root-config --glibs)
LDLIBS += -lMathMore
LDLIBS += -lGeom -lEGPythia6 -lGenVector
LDLIBS += -L$(BOOST_LIB) -lboost_program_options
LDLIBS += -L$(CETLIB_LIB) -L$(CETLIB_EXCEPT_LIB) -lcetlib -lcetlib_except
LDLIBS += -L$(FHICLCPP_LIB) -lfhiclcpp -lfhiclcpp_types
LDLIBS += -L$(EDEPSIM_LIB) -ledepsim
export LIBDIR = $(PWD)/lib
export BINDIR = $(PWD)/bin
SUBDIRS = src
all:
test -d $(LIBDIR) || mkdir $(LIBDIR)
test -d $(BINDIR) || mkdir $(BINDIR)
+make -C src $(MAKECMDGOALS)
clean:
rm -f $(LIBDIR)/*
rm -f $(BINDIR)/*
rm -f $(wildcard AutoDict_*)
+make -C src clean
test:
+make -C src $(MAKECMDGOALS)