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
27 for d in $(TARGET_DIRS); do \
28 make -C $$d $@ || exit 1 ; \
32 rm -f config-host.mak config-host.h
33 for d in $(TARGET_DIRS); do \
34 rm -rf $$d || exit 1 ; \
38 mkdir -p $(prefix)/bin
39 install -m 755 -s $(TOOLS) $(prefix)/bin
41 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(sharedir)
42 mkdir -p $(mandir)/man1
43 install qemu.1 $(mandir)/man1
44 for d in $(TARGET_DIRS); do \
45 make -C $$d $@ || exit 1 ; \
48 # various test targets
53 etags *.[ch] tests/*.[ch]
56 qemu-doc.html: qemu-doc.texi
57 texi2html -monolithic -number $<
60 ./texi2pod.pl $< qemu.pod
61 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
63 FILE=qemu-$(shell cat VERSION)
65 # tar release (use 'make -k tar' on a checkouted tree)
69 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) )
72 # generate a binary distribution including the test binary environnment
73 BINPATH=/usr/local/qemu-i386
76 tar zcvf /tmp/qemu-$(VERSION)-i386-glibc21.tar.gz \
77 $(BINPATH)/etc $(BINPATH)/lib $(BINPATH)/bin $(BINPATH)/usr
78 tar zcvf /tmp/qemu-$(VERSION)-i386-wine.tar.gz \
81 ifneq ($(wildcard .depend),)