-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (18 loc) · 972 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
CXX = c++
CXXFLAGS = -std=c++14 -Wall -Wextra -O3 -IMaunaKea/
PINEAPPL_DEPS != pkg-config --cflags --libs pineappl_capi
LHAPDF_DEPS != pkg-config --cflags --libs lhapdf
GSL_DEPS != gsl-config --cflags --libs
DVEGAS_DEPS != pkg-config --cflags --libs dvegas
PY310_DEPS != python3.10-config --includes --ldflags
PY312_DEPS != python3.12-config --includes --ldflags
PYBIND_DEPS != python3 -m pybind11 --includes
FILES != ls MaunaKea/*.h*
py310: Python.cpp $(FILES)
$(CXX) $(CXXFLAGS) -shared -fPIC $< $(PINEAPPL_DEPS) $(LHAPDF_DEPS) $(GSL_DEPS) $(DVEGAS_DEPS) $(PY310_DEPS) $(PYBIND_DEPS) -o MaunaKea`python3.10-config --extension-suffix`
py312: Python.cpp $(FILES)
$(CXX) $(CXXFLAGS) -shared -fPIC $< $(PINEAPPL_DEPS) $(LHAPDF_DEPS) $(GSL_DEPS) $(DVEGAS_DEPS) $(PY312_DEPS) $(PYBIND_DEPS) -o MaunaKea`python3.12-config --extension-suffix`
PHONY: clean
clean:
rm -f MaunaKea`python3.10-config --extension-suffix`
rm -f MaunaKea`python3.12-config --extension-suffix`