14 |
ifdef CONFIG_STATIC |
ifdef CONFIG_STATIC |
15 |
LDFLAGS+=-static |
LDFLAGS+=-static |
16 |
endif |
endif |
17 |
DOCS=qemu-doc.html qemu-tech.html qemu.1 |
DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 |
18 |
|
|
19 |
all: dyngen$(EXESUF) $(TOOLS) $(DOCS) |
all: dyngen$(EXESUF) $(TOOLS) $(DOCS) |
20 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
30 |
clean: |
clean: |
31 |
# avoid old build problems by removing potentially incorrect old files |
# avoid old build problems by removing potentially incorrect old files |
32 |
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
33 |
rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS qemu.pod *~ */*~ |
rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS *.pod *~ */*~ |
34 |
$(MAKE) -C tests clean |
$(MAKE) -C tests clean |
35 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
36 |
$(MAKE) -C $$d $@ || exit 1 ; \ |
$(MAKE) -C $$d $@ || exit 1 ; \ |
57 |
install -m 644 qemu-doc.html qemu-tech.html "$(docdir)" |
install -m 644 qemu-doc.html qemu-tech.html "$(docdir)" |
58 |
ifndef CONFIG_WIN32 |
ifndef CONFIG_WIN32 |
59 |
mkdir -p "$(mandir)/man1" |
mkdir -p "$(mandir)/man1" |
60 |
install qemu.1 qemu-mkcow.1 "$(mandir)/man1" |
install qemu.1 qemu-img.1 "$(mandir)/man1" |
61 |
endif |
endif |
62 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
63 |
$(MAKE) -C $$d $@ || exit 1 ; \ |
$(MAKE) -C $$d $@ || exit 1 ; \ |
78 |
./texi2pod.pl $< qemu.pod |
./texi2pod.pl $< qemu.pod |
79 |
pod2man --section=1 --center=" " --release=" " qemu.pod > $@ |
pod2man --section=1 --center=" " --release=" " qemu.pod > $@ |
80 |
|
|
81 |
|
qemu-img.1: qemu-img.texi |
82 |
|
./texi2pod.pl $< qemu-img.pod |
83 |
|
pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@ |
84 |
|
|
85 |
FILE=qemu-$(shell cat VERSION) |
FILE=qemu-$(shell cat VERSION) |
86 |
|
|
87 |
# tar release (use 'make -k tar' on a checkouted tree) |
# tar release (use 'make -k tar' on a checkouted tree) |
96 |
( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \ |
( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \ |
97 |
$(bindir)/qemu $(bindir)/qemu-fast \ |
$(bindir)/qemu $(bindir)/qemu-fast \ |
98 |
$(bindir)/qemu-system-ppc \ |
$(bindir)/qemu-system-ppc \ |
99 |
|
$(bindir)/qemu-system-sparc \ |
100 |
$(bindir)/qemu-i386 \ |
$(bindir)/qemu-i386 \ |
101 |
$(bindir)/qemu-arm \ |
$(bindir)/qemu-arm \ |
102 |
$(bindir)/qemu-sparc \ |
$(bindir)/qemu-sparc \ |
110 |
$(datadir)/linux_boot.bin \ |
$(datadir)/linux_boot.bin \ |
111 |
$(docdir)/qemu-doc.html \ |
$(docdir)/qemu-doc.html \ |
112 |
$(docdir)/qemu-tech.html \ |
$(docdir)/qemu-tech.html \ |
113 |
$(mandir)/man1/qemu.1 $(mandir)/man1/qemu-mkcow.1 ) |
$(mandir)/man1/qemu.1 $(mandir)/man1/qemu-img.1 ) |
114 |
|
|
115 |
ifneq ($(wildcard .depend),) |
ifneq ($(wildcard .depend),) |
116 |
include .depend |
include .depend |