bitkeeper revision 1.1159.223.40 (41f676cbajLGqFeWFqajtJ3X4OkgoA)

Build system fixes.
Signed-off-by: keir.fraser@cl.cam.ac.uk
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2005-01-25 16:41:47 +00:00
1 parent d63e6e0318
commit 3279b48916
15 files changed
+31 -78

No files matched your search

+15 -34
View File
@@ -2,9 +2,6 @@
# Grand Unified Makefile for Xen.
#
DISTDIR ?= $(CURDIR)/dist
DESTDIR ?= $(DISTDIR)/install
INSTALL := install
INSTALL_DIR := $(INSTALL) -d -m0755
INSTALL_DATA := $(INSTALL) -m0644
@@ -18,7 +15,6 @@ ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
export DESTDIR
include buildconfigs/Rules.mk
@@ -31,26 +27,16 @@ all: dist
# install everything into the standard system directories
# NB: install explicitly does not check that everything is up to date!
install: install-tools install-xen install-kernels install-docs
install: xen checked-tools kernels docs
install-xen:
$(MAKE) -C xen install
install-tools:
# Only check for install req'mts on 'make install', not on 'make dist'.
checked-tools:
$(MAKE) -C tools/check install
$(MAKE) -C tools install
install-kernels:
cp -a $(DESTDIR)/boot/* /boot/
cp -a $(DESTDIR)/lib/modules/* /lib/modules/
cp -dR $(DESTDIR)/boot/*$(LINUX_VER)* $(prefix)/boot/
cp -dR $(DESTDIR)/lib/modules/* $(prefix)/lib/modules/
install-docs:
sh ./docs/check_pkgs && $(MAKE) -C docs install || true
sh ./docs/check_pkgs
-$(MAKE) -C docs install
# build and install everything into local dist directory
dist: DISTDIR=$(CURDIR)/dist
dist: DESTDIR=$(DISTDIR)/install
dist: xen tools kernels docs
$(INSTALL_DIR) $(DISTDIR)/check
$(INSTALL_DATA) ./COPYING $(DISTDIR)
@@ -59,17 +45,16 @@ dist: xen tools kernels docs
$(INSTALL_PROG) tools/check/chk tools/check/check_* $(DISTDIR)/check
xen:
$(MAKE) dist=yes -C xen install
$(MAKE) -C xen install
tools:
$(MAKE) dist=yes -C tools install
$(MAKE) -C tools install
kernels:
for i in $(XKERNELS) ; do $(MAKE) $$i-build || exit 1; done
docs:
sh ./docs/check_pkgs
-$(MAKE) dist=yes -C docs install
sh ./docs/check_pkgs && $(MAKE) -C docs install || true
# Build all the various kernels and modules
kbuild: kernels
@@ -126,21 +111,17 @@ install-iptables:
help:
@echo 'Installation targets:'
@echo ' install - install everything'
@echo ' install-xen - install the Xen hypervisor'
@echo ' install-tools - install the control tools'
@echo ' install-kernels - install guest kernels'
@echo ' install-docs - install documentation'
@echo ' install - build and install everything'
@echo ''
@echo 'Building targets:'
@echo ' dist - build everything and place in dist/'
@echo ' dist - build and install everything into local dist directory'
@echo ' world - clean everything, delete guest kernel build'
@echo ' trees then make dist'
@echo ' xen - build Xen hypervisor and place in dist/'
@echo ' tools - build tools and place in dist/'
@echo ' kernels - build guest kernels and place in dist/'
@echo ' xen - build and install Xen hypervisor'
@echo ' tools - build and install tools'
@echo ' kernels - build and install guest kernels'
@echo ' kbuild - synonym for make kernels'
@echo ' docs - build docs and place in dist/'
@echo ' docs - build and install docs'
@echo ''
@echo 'Cleaning targets:'
@echo ' clean - clean the Xen, tools and docs (but not'
+1 -4
View File
@@ -10,10 +10,7 @@ FIG2DEV := fig2dev
TGIF := tgif
LATEX2HTML := latex2html
package = xen
prefix = /usr
docdir = $(prefix)/share/doc
pkgdocdir = $(docdir)/$(package)
pkgdocdir := /usr/share/doc/xen
DOC_TEX := $(wildcard src/*.tex)
DOC_PS := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX))
@@ -118,9 +118,6 @@ install: bzImage
install -m0664 .config $(INSTALL_PATH)/boot/config-$(INSTALL_NAME)$(INSTALL_SUFFIX)
install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(INSTALL_NAME)$(INSTALL_SUFFIX)
dist:
$(MAKE) INSTALL_PATH=../dist/install install
%_config: arch/xen/defconfig-%
rm -f .config arch/xen/defconfig
cp -f arch/xen/defconfig-$(@:_config=) arch/xen/defconfig
@@ -54,8 +54,6 @@ install: vmlinuz
install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
dist:
$(MAKE) INSTALL_PATH=../dist/install install
archclean:
@if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
+1 -7
View File
@@ -10,9 +10,7 @@ all:
$(MAKE) -C xfrd
install:
ifneq ($(dist),yes)
$(MAKE) -C check install
endif
$(MAKE) -C check
$(MAKE) -C libxutil install
$(MAKE) -C libxc install
$(MAKE) -C misc install
@@ -22,10 +20,6 @@ endif
$(MAKE) -C xfrd install
$(MAKE) -C sv install
dist: $(TARGET)
$(MAKE) prefix=$(CURDIR)/../dist/install dist=yes install
clean:
$(MAKE) -C libxutil clean
$(MAKE) -C libxc clean
+2 -2
View File
@@ -33,14 +33,14 @@ install-configs:
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
for i in $(XEN_CONFIGS); \
do [ -a $(DESTDIR)/$(XEN_CONFIG_DIR)/$$i ] || \
do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
done
install-scripts:
$(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
for i in $(XEN_SCRIPTS); \
do [ -a $(DESTDIR)/$()/$$i ] || \
do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
done
+1 -5
View File
@@ -25,11 +25,7 @@ LIB_SRCS += util.c
LIB_OBJS := $(LIB_SRCS:.c=.o)
CFLAGS += -Wall
CFLAGS += -Werror
CFLAGS += -g
CFLAGS += -O3
CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing
# Get gcc to generate the dependencies for us.
CFLAGS += -Wp,-MD,.$(@F).d
+1 -5
View File
@@ -3,11 +3,7 @@ all:
python setup.py build
install: all
if [ "$(DESTDIR)" = "" ]; then \
python setup.py install; \
else \
python setup.py install --root="$(DESTDIR)"; \
fi
python setup.py install --home="$(DESTDIR)/usr"
clean:
rm -rf build *.pyc *.pyo *.o *.a *~
-3
View File
@@ -44,9 +44,6 @@ install: compile
$(MAKE) -C vnet-module install
$(MAKE) -C examples install
dist: $(TARGET)
$(MAKE) install
clean:
-$(MAKE) -C vnetd clean
-$(MAKE) -C vnet-module clean
+2 -2
View File
@@ -6,7 +6,7 @@ XEN_SCRIPT_DIR:=/etc/xen/scripts
all:
install:
install -m 0755 -d $(prefix)$(XEN_SCRIPT_DIR)
install -m 0554 network-vnet $(prefix)$(XEN_SCRIPT_DIR)
install -m 0755 -d $(DESTDIR)$(XEN_SCRIPT_DIR)
install -m 0554 network-vnet $(DESTDIR)$(XEN_SCRIPT_DIR)
clean:
+2 -2
View File
@@ -83,8 +83,8 @@ $(KERNEL_MODULE): $(VNET_OBJ)
.PHONY: install install-module modules_install
install install-module modules_install: module
install -m 0755 -d $(prefix)$(KERNEL_MODULE_DIR)
install -m 0554 $(KERNEL_MODULE) $(prefix)$(KERNEL_MODULE_DIR)
install -m 0755 -d $(DESTDIR)$(KERNEL_MODULE_DIR)
install -m 0554 $(KERNEL_MODULE) $(DESTDIR)$(KERNEL_MODULE_DIR)
TAGS:
etags *.c *.h
+2 -2
View File
@@ -38,8 +38,8 @@ module modules:
.PHONY: install install-module modules_install
install install-module modules_install: module
install -m 0755 -d $(prefix)$(KERNEL_MODULE_DIR)
install -m 0554 $(KERNEL_MODULE) $(prefix)$(KERNEL_MODULE_DIR)
install -m 0755 -d $(DESTDIR)$(KERNEL_MODULE_DIR)
install -m 0554 $(KERNEL_MODULE) $(DESTDIR)$(KERNEL_MODULE_DIR)
.PHONY: clean
clean:
+2 -2
View File
@@ -92,8 +92,8 @@ vnetd: $(VNETD_OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(VNETD_LIBS) -ldl -lpthread
install: vnetd
mkdir -p $(prefix)/$(VNETD_INSTALL_DIR)
install -m 0755 vnetd $(prefix)/$(VNETD_INSTALL_DIR)
mkdir -p $(DESTDIR)$(VNETD_INSTALL_DIR)
install -m 0755 vnetd $(DESTDIR)$(VNETD_INSTALL_DIR)
clean:
-rm -f *.a *.o *~
+2 -2
View File
@@ -72,8 +72,8 @@ xfrd: $(XFRD_PROG_OBJ)
.PHONY: install
install: xfrd
$(INSTALL_DIR) $(DESTDIR)/$(XFRD_INSTALL_DIR)
$(INSTALL_PROG) xfrd $(DESTDIR)/$(XFRD_INSTALL_DIR)
$(INSTALL_DIR) $(DESTDIR)$(XFRD_INSTALL_DIR)
$(INSTALL_PROG) xfrd $(DESTDIR)$(XFRD_INSTALL_DIR)
.PHONY: libutil
libutil: $(UTIL_LIB)
-3
View File
@@ -9,7 +9,6 @@ export XEN_SUBVERSION = 0
export XEN_EXTRAVERSION = ""
export BASEDIR := $(CURDIR)
DESTDIR := $(CURDIR)/../dist/install
include Rules.mk
@@ -30,8 +29,6 @@ install: $(TARGET).gz
$(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
$(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
dist: install
clean:
$(MAKE) -C tools clean
$(MAKE) -C common clean
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.