1 include config-host.mak
9 all: dyngen $(TOOLS) qemu-doc.html qemu.1
10 for d in $(TARGET_DIRS); do \
11 make -C $$d $@ || exit 1 ; \
14 qemu-mkcow: qemu-mkcow.o
15 $(HOST_CC) -o $@ $^ $(LIBS)
18 $(HOST_CC) -o $@ $^ $(LIBS)
21 $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
24 # avoid old build problems by removing potentially incorrect old files
25 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
26 rm -f *.o *.a $(TOOLS) dyngen TAGS qemu.pod
28 for d in $(TARGET_DIRS); do \
29 make -C $$d $@ || exit 1 ; \
33 rm -f config-host.mak config-host.h
34 for d in $(TARGET_DIRS); do \
35 rm -rf $$d || exit 1 ; \
39 mkdir -p $(prefix)/bin
40 install -m 755 -s $(TOOLS) $(prefix)/bin
42 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(sharedir)
43 mkdir -p $(mandir)/man1
44 install qemu.1 $(mandir)/man1
45 for d in $(TARGET_DIRS); do \
46 make -C $$d $@ || exit 1 ; \
49 # various test targets
54 etags *.[ch] tests/*.[ch]
57 qemu-doc.html: qemu-doc.texi
58 texi2html -monolithic -number $<
61 ./texi2pod.pl $< qemu.pod
62 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
64 FILE=qemu-$(shell cat VERSION)
66 # tar release (use 'make -k tar' on a checkouted tree)
70 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS )
73 # generate a binary distribution
75 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
76 $(prefix)/bin/qemu $(prefix)/bin/qemu-fast \
77 $(prefix)/bin/qemu-i386 \
78 $(prefix)/bin/qemu-arm \
79 $(prefix)/bin/qemu-sparc \
80 $(prefix)/bin/qemu-ppc \
81 $(sharedir)/bios.bin \
82 $(sharedir)/vgabios.bin \
83 $(mandir)/man1/qemu.1 )
85 ifneq ($(wildcard .depend),)