-
Notifications
You must be signed in to change notification settings - Fork 196
/
Makefile
39 lines (29 loc) · 891 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
build:
python setup.py build_ext --inplace -j 8
build2:
python2 setup.py build_ext --inplace -j 8
docs:
make -C docs html
install:
pip install .
uninstall:
pip uninstall quantlib
tests-preload:
LD_PRELOAD=/opt/QuantLib-1.1/lib/libQuantLib.so nosetests -v quantlib/test
tests: build
python -m unittest discover -v
tests2: build2
python2 -m unittest discover -v
build_ex:
g++ -m32 -I/opt/local/include/ -I/opt/local/include/boost quantlib_test2.cpp \
-o test2 -L/opt/local/lib/ -lQuantLib
clean:
find quantlib -name \*.so -exec rm {} +
find quantlib -name \*.pyc -exec rm {} +
find quantlib -name \*.cpp -exec rm {} +
find quantlib -name \*.c -exec rm {} +
find quantlib -name \*.h -exec rm {} +
-rm quantlib/termstructures/yields/{piecewise_yield_curve,discount_curve,forward_curve,zero_curve}.{pxd,pyx}
rm -rf build
rm -rf dist
.PHONY: build build2 docs clean