1 include config-host.mak
17 all: dyngen$(EXESUF) $(TOOLS) qemu-doc.html qemu-tech.html qemu.1
18 for d in $(TARGET_DIRS); do \
19 make -C $$d $@ || exit 1 ; \
22 qemu-mkcow: qemu-mkcow.c
23 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ $(LIBS)
25 dyngen$(EXESUF): dyngen.c
26 $(HOST_CC) $(CFLAGS) $(DEFINES) -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 ; \
46 install -m 755 -s $(TOOLS) "$(bindir)"
48 mkdir -p "$(sharedir)"
49 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
50 pc-bios/linux_boot.bin "$(sharedir)"
52 install -m 644 qemu-doc.html qemu-tech.html "$(docdir)"
54 mkdir -p "$(mandir)/man1"
55 install qemu.1 qemu-mkcow.1 "$(mandir)/man1"
57 for d in $(TARGET_DIRS); do \
58 make -C $$d $@ || exit 1 ; \
61 # various test targets
66 etags *.[ch] tests/*.[ch]
70 texi2html -monolithic -number $<
73 ./texi2pod.pl $< qemu.pod
74 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
76 FILE=qemu-$(shell cat VERSION)
78 # tar release (use 'make -k tar' on a checkouted tree)
82 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS )
85 # generate a binary distribution
87 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
88 $(prefix)/bin/qemu $(prefix)/bin/qemu-fast \
89 $(prefix)/bin/qemu-system-ppc \
90 $(prefix)/bin/qemu-i386 \
91 $(prefix)/bin/qemu-arm \
92 $(prefix)/bin/qemu-sparc \
93 $(prefix)/bin/qemu-ppc \
94 $(prefix)/bin/qemu-mkcow \
95 $(sharedir)/bios.bin \
96 $(sharedir)/vgabios.bin \
97 $(sharedir)/linux_boot.bin \
98 $(docdir)/qemu-doc.html \
99 $(docdir)/qemu-tech.html \
100 $(mandir)/man1/qemu.1 $(mandir)/man1/qemu-mkcow.1 )
102 ifneq ($(wildcard .depend),)