source: trunk/packages/xen-3.1/xen-3.1/tools/firmware/Makefile @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 1.1 KB
Line 
1XEN_ROOT = ../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4# hvmloader is a 32-bit protected mode binary.
5# It belongs in /usr/lib, not /usr/lib64.
6TARGET      := hvmloader/hvmloader
7INST_DIR := $(DESTDIR)/usr/lib/xen/boot
8
9SUBDIRS :=
10SUBDIRS += rombios rombios/32bit
11SUBDIRS += vgabios
12SUBDIRS += vmxassist
13SUBDIRS += hvmloader
14
15.PHONY: all
16all:
17        @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \
18        echo "***********************************************************"; \
19        echo "Require dev86 package version >= 0.16.14 to build firmware!"; \
20        echo "(visit http://www.cix.co.uk/~mayday for more information)"; \
21        echo "***********************************************************"; \
22        else \
23        for subdir in $(SUBDIRS); do \
24                $(MAKE) -C $$subdir $@; \
25        done; \
26        fi
27
28
29.PHONY: install
30install: all
31        [ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR)
32        [ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
33
34.PHONY: clean
35clean: 
36        @set -e; for subdir in $(SUBDIRS); do \
37                $(MAKE) -C $$subdir $@; \
38        done
Note: See TracBrowser for help on using the repository browser.