1 include config-host.mak
11 TOOLS=qemu-mkcow vmdk2raw
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)
26 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ $(LIBS)
28 dyngen$(EXESUF): dyngen.c
29 $(HOST_CC) $(CFLAGS) $(DEFINES) -o $@ $^
32 # avoid old build problems by removing potentially incorrect old files
33 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
34 rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS qemu.pod
35 $(MAKE) -C tests clean
36 for d in $(TARGET_DIRS); do \
37 $(MAKE) -C $$d $@ || exit 1 ; \
41 rm -f config-host.mak config-host.h
42 for d in $(TARGET_DIRS); do \
43 rm -rf $$d || exit 1 ; \
49 install -m 755 -s $(TOOLS) "$(bindir)"
52 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
53 pc-bios/linux_boot.bin "$(datadir)"
55 install -m 644 qemu-doc.html qemu-tech.html "$(docdir)"
57 mkdir -p "$(mandir)/man1"
58 install qemu.1 qemu-mkcow.1 "$(mandir)/man1"
60 for d in $(TARGET_DIRS); do \
61 $(MAKE) -C $$d $@ || exit 1 ; \
64 # various test targets
69 etags *.[ch] tests/*.[ch]
73 texi2html -monolithic -number $<
76 ./texi2pod.pl $< qemu.pod
77 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
79 FILE=qemu-$(shell cat VERSION)
81 # tar release (use 'make -k tar' on a checkouted tree)
85 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS )
88 # generate a binary distribution
90 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
91 $(bindir)/qemu $(bindir)/qemu-fast \
92 $(bindir)/qemu-system-ppc \
95 $(bindir)/qemu-sparc \
97 $(bindir)/qemu-mkcow $(bindir)/vmdk2raw \
99 $(datadir)/vgabios.bin \
100 $(datadir)/linux_boot.bin \
101 $(docdir)/qemu-doc.html \
102 $(docdir)/qemu-tech.html \
103 $(mandir)/man1/qemu.1 $(mandir)/man1/qemu-mkcow.1 )
105 ifneq ($(wildcard .depend),)