mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Fix the tools/vnet makefiles so that vnets will compile and includes updates to the vnet implementation. Vnet ids are increased to 128 bits. The vnet module will insmod whether xen-br0 exists or not. Signed-off-by: Mike Wray <mike.wray@hp.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
63 lines
980 B
Makefile
63 lines
980 B
Makefile
# -*- mode: Makefile; -*-
|
|
|
|
ifndef VNET_ROOT
|
|
export VNET_ROOT = $(shell pwd)
|
|
include $(VNET_ROOT)/Make.env
|
|
endif
|
|
|
|
.PHONY: all compile install dist clean pristine
|
|
.PHONY: gc-all gc-install gc-clean
|
|
|
|
SUBDIRS:=
|
|
SUBDIRS+= examples
|
|
SUBDIRS+= gc
|
|
SUBDIRS+= libxutil
|
|
SUBDIRS+= vnetd
|
|
SUBDIRS+= vnet-module
|
|
|
|
all: compile
|
|
|
|
gc.tar.gz:
|
|
wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$@
|
|
|
|
gc: gc.tar.gz
|
|
tar xfz gc.tar.gz
|
|
ln -sf gc?.? gc
|
|
|
|
$(GC_LIB_A): gc
|
|
(cd gc && ./configure --prefix=$(GC_DIR) )
|
|
make -C gc
|
|
DESTDIR="" make -C gc install
|
|
|
|
gc-all: $(GC_LIB_A)
|
|
|
|
gc-install:
|
|
|
|
gc-clean:
|
|
-@$(RM) -r gc?.? gc
|
|
|
|
submak = $(MAKE) -C $(patsubst %-$(1),%,$(@)) $(1)
|
|
subtgt = $(patsubst %,%-$(1),$(SUBDIRS))
|
|
|
|
%-all:
|
|
$(call submak,all)
|
|
|
|
%-clean:
|
|
-$(call submak,clean)
|
|
|
|
%-install:
|
|
$(call submak,install)
|
|
|
|
compile: $(call subtgt,all)
|
|
|
|
install: DESTDIR=
|
|
install: dist
|
|
|
|
dist: compile $(call subtgt,install)
|
|
|
|
clean: $(call subtgt,clean)
|
|
-@$(RM) -r build
|
|
|
|
pristine: clean
|
|
-@$(RM) gc.tar.gz
|