ia64/xen-unstable

view Makefile @ 3156:d0daec09aa8b

bitkeeper revision 1.1159.187.19 (41a65822miLPeexZ6MOkyk4Usl-Rpw)

Fix multicall preemption.
author kaf24@scramble.cl.cam.ac.uk
date Thu Nov 25 22:09:38 2004 +0000 (2004-11-25)
parents f52ac722d9c7
children 452731aa69b6 e6337ed51082
line source
1 #
2 # Grand Unified Makefile for Xen.
3 #
5 DIST_DIR ?= $(shell pwd)/dist
6 INSTALL_DIR ?= $(DIST_DIR)/install
8 KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
9 # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
10 # You may use wildcards in the above e.g. KERNELS=*2.4*
12 ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
13 ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
14 XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
17 export INSTALL_DIR
19 include buildconfigs/Rules.mk
21 .PHONY: all dist install xen tools kernels docs world clean mkpatches mrproper
22 .PHONY: kbuild kdelete kclean
24 all: dist
26 # build and install everything into local dist directory
27 dist: xen tools kernels docs
28 install -m0644 ./COPYING $(DIST_DIR)
29 install -m0644 ./README $(DIST_DIR)
30 install -m0755 ./install.sh $(DIST_DIR)
31 mkdir -p $(DIST_DIR)/check
32 install -m0755 tools/check/chk tools/check/check_* $(DIST_DIR)/check
34 # install everything into the standard system directories
35 # NB: install explicitly does not check that everything is up to date!
36 install:
37 $(MAKE) -C xen install
38 $(MAKE) -C tools install
39 $(shell cp -a $(INSTALL_DIR)/boot/* /boot/)
40 $(shell cp -a $(INSTALL_DIR)/lib/modules/* /lib/modules/)
41 sh ./docs/check_pkgs && $(MAKE) -C docs install || true
42 $(shell cp -dR $(INSTALL_DIR)/boot/*$(LINUX_VER)* $(prefix)/boot/)
43 $(shell cp -dR $(INSTALL_DIR)/lib/modules/* $(prefix)/lib/modules/)
45 xen:
46 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install
48 tools:
49 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
51 kernels:
52 for i in $(XKERNELS) ; do $(MAKE) $$i-build ; done
54 docs:
55 sh ./docs/check_pkgs && \
56 $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C docs install || true
58 # Build all the various kernels and modules
59 kbuild: kernels
61 # Delete the kernel build trees entirely
62 kdelete:
63 for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
65 # Clean the kernel build trees
66 kclean:
67 for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
69 # Make patches from kernel sparse trees
70 mkpatches:
71 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-xen.patch ; done
74 # build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
75 # and place them in the install directory. 'make install' should then
76 # copy them to the normal system directories
77 world:
78 $(MAKE) clean
79 $(MAKE) kdelete
80 $(MAKE) dist
82 # clean doesn't do a kclean
83 clean:
84 $(MAKE) -C xen clean
85 $(MAKE) -C tools clean
86 $(MAKE) -C docs clean
88 # clean, but blow away kernel build tree plus tar balls
89 mrproper: clean
90 rm -rf dist patches/tmp
91 for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
92 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
94 install-twisted:
95 wget http://www.twistedmatrix.com/products/get-current.epy
96 tar -zxf Twisted-*.tar.gz
97 ( cd Twisted-* ; python setup.py install )
99 install-logging: LOGGING=logging-0.4.9.2
100 install-logging:
101 [ -f $(LOGGING).tar.gz ] || wget http://www.red-dove.com/$(LOGGING).tar.gz
102 tar -zxf $(LOGGING).tar.gz
103 ( cd $(LOGGING) && python setup.py install )
105 # handy target to upgrade iptables (use rpm or apt-get in preference)
106 install-iptables:
107 wget http://www.netfilter.org/files/iptables-1.2.11.tar.bz2
108 tar -jxf iptables-*.tar.bz2
109 ( cd iptables-* ; \
110 make PREFIX= KERNEL_DIR=../linux-$(LINUX_VER)-xen0 install)
112 # Use this target with extreme care!
113 uninstall:
114 cp -a /etc/xen /etc/xen.old && rm -rf /etc/xen
115 rm -rf "/usr/lib/python2.?/site-packages/xen* /usr/lib/libxc* /usr/lib/python2.?/site-packages/Xc*"
117 # Legacy targets for compatibility
118 linux24:
119 $(MAKE) linux-2.4-xen0-build
120 $(MAKE) linux-2.4-xenU-build
122 linux26:
123 $(MAKE) linux-2.6-xen0-build
124 $(MAKE) linux-2.6-xenU-build
126 netbsd20:
127 $(MAKE) netbsd-2.0-xenU-build