forked from nickkamp1/NuXSSplMkr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (61 loc) · 2.64 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#PATHS
ifeq ($(PREFIX),)
PREFIX= /cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/RHEL_7_x86_64/
endif
CURRENT_DIR = $(shell pwd)
LHAPDF = $(PREFIX)
BOOST = $(PREFIX)
PHOTOSPLINE = $(PREFIX)
SOURCES = $(wildcard src/*.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
INCLUDE_PATH = -I/usr/local/include -I./inc
INCLUDE_PATH += -I$(CURRENT_DIR)/inc
INCLUDE_PATH += -I$(CURRENT_DIR)/inc/Dipole_models
INCLUDE_PATH += -I$(LHAPDF)/include
INCLUDE_PATH += -I$(BOOST)/include
INCLUDE_PATH += -I$(SROOT)/include
#Compiler
# CC = clang
# CXX = clang++
CC = gcc
CXX = g++
#Dynamic Library
#Flags
CXX_FLAGS = $(INCLUDE_PATH) -I. -O3 -fPIC -std=c++11
# LD = clang++
LD = g++
LD_FLAGS = -L/usr/local/lib/ -L/usr/lib -L$(LHAPDF)/lib -L$(BOOST)/lib -L$(PHOTOSPLINE)/lib
LD_FLAGS += -L$(SROOT)/lib
LD_FLAGS += -L$(SROOT)/lib64
LD_FLAGS += -lLHAPDF
LD_FLAGS += -lgsl -lgslcblas
LD_FLAGS += -lboost_system -lboost_iostreams -lboost_filesystem -lboost_regex
.PHONY: all clean
CT_OBJ = $(CT)src/CT12Pdf.o $(CURRENT_DIR)src/ct10_xs.o
all: bin/nu_cross.exe bin/nu_cross_classic.exe bin/nu_cross_var.exe bin/nu_total_cross_central.exe bin/nu_cross_full.exe bin/nu_cross_diff.exe
test: bin/test.exe
aaron: bin/nu_cross_full_a_la_aaron_muon.exe bin/nu_cross_full_a_la_aaron_tau.exe
bin/nu_cross.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_hnl.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_hnl.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_classic.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_classic.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_var.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_var.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_total_cross_central.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_total_cross_central.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_full.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_full.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_full_a_la_aaron_muon.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_full_a_la_aaron_muon.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/test.exe: src/lhapdf_cross_section.o src/physconst.o mains/test.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_diff.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_diff.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
bin/nu_cross_full_a_la_aaron_tau.exe: src/lhapdf_cross_section.o src/physconst.o mains/nu_cross_full_a_la_aaron_tau.o
$(LD) $^ $(LIBS) $(LD_FLAGS) -o $@
%.o:%.cpp
$(CXX) $(CXX_FLAGS) -c $< -o $@
clean:
rm src/*.o bin/*.exe mains/*.o