-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTuprules.tup
72 lines (57 loc) · 1.51 KB
/
Tuprules.tup
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
CFLAGS += -g
CFLAGS += -Wall
CFLAGS += -fmessage-length=0
CFLAGS += -I$(TUP_CWD)
CFLAGS += -I`root-config --incdir`
LDFLAGS += `root-config --libs`
export BOOST_INC
export BOOST_LIB
export CETLIB_INC
export CETLIB_LIB
export CPP0X_INC
export CPP0X_LIB
export FHICLCPP_INC
export FHICLCPP_LIB
export ROOTSYS
export LD_LIBRARY_PATH
TOPDIR = $(TUP_CWD)
LIBUTIL=$(TOPDIR)/MuCapUtilities/libMuCapUtilities.a
#================================================================
ifndef STANDALONE_BUILD
CFLAGS += -fno-omit-frame-pointer -rdynamic -fPIC
LDFLAGS += -L$(TUP_CWD)/lib
LDFLAGS += -lCintex
export ART_INC
export ART_LIB
!cc = |> g++ $(CFLAGS) \
-I$ART_INC \
-I$FHICLCPP_INC \
-I$CPP0X_INC \
-I$CETLIB_INC \
-I$BOOST_INC \
-c %f -o %o |> %B.o
!ldmain = |> g++ $(LDFLAGS) \
-L$ART_LIB -lart_Framework_IO_Root \
-L$FHICLCPP_LIB -lfhiclcpp \
-L$CPP0X_LIB \
-L$CETLIB_LIB -lcetlib \
-L$BOOST_LIB \
%f -o %o |>
#================================================================
# standalone: no ART dependencies
else
!cc = |> g++ $(CFLAGS) \
-I$FHICLCPP_INC \
-I$CPP0X_INC \
-I$CETLIB_INC \
-I$BOOST_INC \
-c %f -o %o |> %B.o
!ldmain = |> g++ %f -o %o \
$(LDFLAGS) \
-L$FHICLCPP_LIB -Wl,-rpath=$FHICLCPP_LIB -lfhiclcpp \
-L$CPP0X_LIB \
-L$CETLIB_LIB -Wl,-rpath=$CETLIB_LIB -lcetlib \
-L$BOOST_LIB -Wl,-rpath=$BOOST_LIB -lboost_filesystem -lboost_regex -l boost_system \
|>
endif
#================================================================