forked from enthought/pyql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 733 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 733 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
31
32
33
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 {} \;
rm -rf build
rm -rf dist
docs:
make -C docs html
build:
python setup.py build_ext --inplace
install:
python setup.py install --record pyql_install.txt
uninstall:
cat pyql_install.txt | grep quantlib | xargs rm -rf
tests-preload:
LD_PRELOAD=/opt/QuantLib-1.1/lib/libQuantLib.so nosetests -v quantlib/test
tests:
#nosetests -v quantlib/test
cd quantlib/test
python -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
.PHONY: build docs