forked from CMSSNU/egm_tnp_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 650 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 650 Bytes
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
CC = g++
CFLAGS = $(shell root-config --cflags)
LDFLAGS = $(shell root-config --libs)
.PHONY: build
build:
cd libPython && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" python setup.py build_ext --inplace
.PHONY: cython-build
cython-build:
cd libPython && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" python setup.py build_ext --inplace --use-cython
.PHONY: clean
clean:
rm -f -r libPython/build/
rm -f libCpp/*.so
rm -f libCpp/*.pcm
rm -f libCpp/*.d
rm -f libPython/*.so
rm -f libPython/*.pyc
rm -f etc/config/*.pyc
rm -f etc/config/*.py~
.PHONY: clean-cpp
clean-cpp:
rm -f libPython/histUtils.cpp
.PHONY: clean-all
clean-all: clean clean-cpp