Build Python bindings with debugging enabled when doing a debug build
[libjio.git] / Makefile
blob5e6a3f8416868a27b5ec469eadfba0bc6ecbbda0
2 default: all
4 all: libjio
7 libjio:
8 $(MAKE) -C libjio/
10 install:
11 $(MAKE) -C libjio/ install
14 PY_DEBUG=
15 ifdef DEBUG
16 PY_DEBUG=--debug
17 endif
19 python2: libjio
20 cd bindings/python && python setup.py build $(PY_DEBUG)
22 python2_install: python2
23 cd bindings/python && python setup.py install
25 python3: libjio
26 cd bindings/python && python3 setup.py build $(PY_DEBUG)
28 python3_install: python3
29 cd bindings/python && python3 setup.py install
32 preload:
33 $(MAKE) -C bindings/preload/
35 preload_install: preload
36 $(MAKE) -C bindings/preload/ install
38 tests: all python2 python3
39 tests/util/quick-test-run normal
41 tests-fi: all python2 python3
42 @if [ "$(FI)" != "1" ]; then \
43 echo "Error: $@ has to be run using: make FI=1 $@"; \
44 exit 1; \
46 tests/util/quick-test-run fiu
48 clean:
49 $(MAKE) -C libjio/ clean
50 $(MAKE) -C bindings/preload clean
51 rm -rf bindings/python/build/
54 .PHONY: default all libjio install \
55 python2 python2_install python3 python3_install \
56 preload preload_install \
57 tests tests-fi clean