ia64/xen-unstable

view Makefile @ 2860:61d139354129

bitkeeper revision 1.1159.157.1 (418934b0-qzq3Mn8ZcEAFEUYycHb2Q)

Device section fixes.
author akw27@labyrinth.cl.cam.ac.uk
date Wed Nov 03 19:42:40 2004 +0000 (2004-11-03)
parents a8ee20a0480f
children 9e8025840eed 23cadd2f9146 fb24f726e556
line source
1 #
2 # Grand Unified Makefile for Xen.
3 #
5 DIST_DIR ?= $(shell pwd)/dist
6 INSTALL_DIR ?= $(DIST_DIR)/install
8 SOURCEFORGE_MIRROR := http://heanet.dl.sourceforge.net/sourceforge
9 #http://voxel.dl.sourceforge.net/sourceforge/
10 #http://easynews.dl.sourceforge.net/sourceforge
12 #KERNELS = mk.linux-2.6-xen0 mk.linux-2.6-xenU mk.linux-2.4-xen0 mk.linux-2.4-xenU mk.netbsd-2.0-xenU
13 KERNELS = mk.linux-2.6-xen0 mk.linux-2.6-xenU
15 export INSTALL_DIR SOURCEFORGE_MIRROR
17 .PHONY: all dist install xen tools kernels docs kdelete kclean mkpatches world clean mrproper
19 all: dist
21 # build and install everything into local dist directory
22 dist: xen tools kernels docs
23 install -m0644 ./COPYING $(DIST_DIR)
24 install -m0644 ./README $(DIST_DIR)
25 install -m0755 ./install.sh $(DIST_DIR)
27 # install everything into the standard system directories
28 # NB: install explicitly does not check that everything is up to date!
29 install:
30 $(MAKE) -C xen install
31 $(MAKE) -C tools install
32 $(shell cp -a install/boot/* /boot/)
33 $(shell cp -a install/lib/modules/* /lib/modules/)
34 sh ./docs/check_pkgs && $(MAKE) -C docs install || true
35 $(shell cp -dR $(INSTALL_DIR)/boot/*$(LINUX_VER)* $(prefix)/boot/)
36 $(shell cp -dR $(INSTALL_DIR)/lib/modules/* $(prefix)/lib/modules/)
38 xen:
39 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install
41 tools:
42 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
44 # Build all the various kernels and modules
45 kernels:
46 for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i build ; done
48 docs:
49 sh ./docs/check_pkgs && \
50 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C docs install || true
52 # Delete the kernel build trees entirely
53 kdelete:
54 for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i delete ; done
56 # Clean the kernel build trees
57 kclean:
58 for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i delete ; done
60 # Make patches from kernel sparse trees
61 mkpatches:
62 $(MAKE) -f buildconfigs/Rules.mk mkpatches
65 # build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
66 # and place them in the install directory. 'make install' should then
67 # copy them to the normal system directories
68 world:
69 $(MAKE) clean
70 $(MAKE) kdelete
71 $(MAKE) dist
73 # clean doesn't do a kclean
74 clean:
75 $(MAKE) -C xen clean
76 $(MAKE) -C tools clean
77 $(MAKE) -C docs clean
79 # clean, but blow away kernel build tree plus tar balls
80 mrproper: clean kdelete
81 rm -rf dist patches *.tar.bz2
82 $(MAKE) -f buildconfigs/Rules.mk mrproper
84 install-twisted:
85 wget http://www.twistedmatrix.com/products/get-current.epy
86 tar -zxf Twisted-*.tar.gz
87 ( cd Twisted-* ; python setup.py install )
89 install-logging: LOGGING=logging-0.4.9.2
90 install-logging:
91 [ -f $(LOGGING).tar.gz ] || wget http://www.red-dove.com/$(LOGGING).tar.gz
92 tar -zxf $(LOGGING).tar.gz
93 ( cd $(LOGGING) && python setup.py install )
95 # handy target to upgrade iptables (use rpm or apt-get in preference)
96 install-iptables:
97 wget http://www.netfilter.org/files/iptables-1.2.11.tar.bz2
98 tar -jxf iptables-*.tar.bz2
99 ( cd iptables-* ; \
100 make PREFIX= KERNEL_DIR=../linux-$(LINUX_VER)-xen0 install)
102 # Use this target with extreme care!
103 uninstall:
104 cp -a /etc/xen /etc/xen.old && rm -rf /etc/xen
105 rm -rf "/usr/lib/python2.?/site-packages/xen* /usr/lib/libxc* /usr/lib/python2.?/site-packages/Xc*"
107 # Legacy target for compatibility
108 linux24:
109 $(MAKE) -f buildconfigs/mk.linux-2.4-xen0 build
110 $(MAKE) -f buildconfigs/mk.linux-2.4-xenU build
112 # Legacy target for compatibility
113 linux26:
114 $(MAKE) -f buildconfigs/mk.linux-2.6-xen0 build
115 $(MAKE) -f buildconfigs/mk.linux-2.6-xenU build
117 # Legacy target for compatibility
118 netbsd20:
119 $(MAKE) -f buildconfigs/mk.netbsd-2.0-xenU build