1 include config-host.mak
14 all: dyngen$(EXESUF) $(TOOLS) qemu-doc.html qemu.1
15 for d in $(TARGET_DIRS); do \
16 make -C $$d $@ || exit 1 ; \
19 qemu-mkcow: qemu-mkcow.o
20 $(HOST_CC) -o $@ $^ $(LIBS)
22 dyngen$(EXESUF): dyngen.o
23 $(HOST_CC) -o $@ $^ $(LIBS)
26 $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
29 # avoid old build problems by removing potentially incorrect old files
30 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
31 rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS qemu.pod
33 for d in $(TARGET_DIRS); do \
34 make -C $$d $@ || exit 1 ; \
38 rm -f config-host.mak config-host.h
39 for d in $(TARGET_DIRS); do \
40 rm -rf $$d || exit 1 ; \
44 mkdir -p $(prefix)/bin
45 install -m 755 -s $(TOOLS) $(prefix)/bin
47 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
48 pc-bios/linux_boot.bin $(sharedir)
49 mkdir -p $(mandir)/man1
50 install qemu.1 qemu-mkcow.1 $(mandir)/man1
51 for d in $(TARGET_DIRS); do \
52 make -C $$d $@ || exit 1 ; \
55 # various test targets
60 etags *.[ch] tests/*.[ch]
63 qemu-doc.html: qemu-doc.texi
64 texi2html -monolithic -number $<
67 ./texi2pod.pl $< qemu.pod
68 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
70 FILE=qemu-$(shell cat VERSION)
72 # tar release (use 'make -k tar' on a checkouted tree)
76 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS )
79 # generate a binary distribution
81 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
82 $(prefix)/bin/qemu $(prefix)/bin/qemu-fast \
83 $(prefix)/bin/qemu-i386 \
84 $(prefix)/bin/qemu-arm \
85 $(prefix)/bin/qemu-sparc \
86 $(prefix)/bin/qemu-ppc \
87 $(sharedir)/bios.bin \
88 $(sharedir)/vgabios.bin \
89 $(mandir)/man1/qemu.1 )
91 ifneq ($(wildcard .depend),)