aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
blob: 87d08a22e65f14b210f91f3ae437b300baf979f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk

.PHONY: all build install clean

all: build
build:
	CFLAGS="$(CFLAGS)" python setup.py build

ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
	CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --force
else
install: all
	CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
endif

test:
	export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); python test.py -b -u

clean:
	rm -rf build *.pyc *.pyo *.o *.a *~