debuggers.hg

view tools/pygrub/Makefile @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 46f8fc57b1a4
line source
2 XEN_ROOT = ../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 .PHONY: all
6 all: build
7 .PHONY: build
8 build:
9 CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
11 .PHONY: install
12 ifndef XEN_PYTHON_NATIVE_INSTALL
13 install: LIBPATH=$(shell PYTHONPATH=../python/xen/util python -c "import auxbin; print auxbin.libpath()")
14 install: all
15 CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --install-lib="$(DESTDIR)$(LIBPATH)/python"
16 $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
17 else
18 install: all
19 CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
20 $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
21 endif
23 .PHONY: clean
24 clean:
25 rm -rf build tmp *.pyc *.pyo *.o *.a *~ a.out