1 include config-host.mak
14 all: dyngen
$(EXESUF
) $(TOOLS
) qemu-doc.html qemu-tech.html qemu
.1
15 for d in
$(TARGET_DIRS
); do \
16 make
-C
$$d $@ || exit
1 ; \
19 qemu-mkcow
: qemu-mkcow.c
20 $(CC
) $(CFLAGS
) $(DEFINES
) -o
$@
$^
$(LIBS
)
22 dyngen
$(EXESUF
): dyngen.c
23 $(HOST_CC
) $(CFLAGS
) $(DEFINES
) -o
$@
$^
26 # avoid old build problems by removing potentially incorrect old files
27 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
28 rm -f
*.o
*.a
$(TOOLS
) dyngen
$(EXESUF
) TAGS qemu.pod
30 for d in
$(TARGET_DIRS
); do \
31 make
-C
$$d $@ || exit
1 ; \
35 rm -f config-host.mak config-host.h
36 for d in
$(TARGET_DIRS
); do \
37 rm -rf
$$d || exit
1 ; \
43 install -m
755 -s
$(TOOLS
) "$(bindir)"
45 mkdir
-p
"$(sharedir)"
46 install -m
644 pc-bios
/bios.bin pc-bios
/vgabios.bin \
47 pc-bios
/linux_boot.bin
"$(sharedir)"
49 mkdir
-p
"$(mandir)/man1"
50 install qemu
.1 qemu-mkcow
.1 "$(mandir)/man1"
52 for d in
$(TARGET_DIRS
); do \
53 make
-C
$$d $@ || exit
1 ; \
56 # various test targets
61 etags
*.
[ch
] tests
/*.
[ch
]
65 texi2html
-monolithic
-number
$<
68 .
/texi2pod.pl
$< qemu.pod
69 pod2man
--section
=1 --center
=" " --release
=" " qemu.pod
> $@
71 FILE
=qemu-
$(shell cat VERSION
)
73 # tar release (use 'make -k tar' on a checkouted tree)
77 ( cd
/tmp
; tar zcvf ~
/$(FILE
).
tar.gz
$(FILE
) --exclude CVS
)
80 # generate a binary distribution
82 ( cd
/ ; tar zcvf ~
/qemu-
$(VERSION
)-i386.
tar.gz \
83 $(prefix)/bin
/qemu
$(prefix)/bin
/qemu-fast \
84 $(prefix)/bin
/qemu-i386 \
85 $(prefix)/bin
/qemu-arm \
86 $(prefix)/bin
/qemu-sparc \
87 $(prefix)/bin
/qemu-ppc \
88 $(sharedir
)/bios.bin \
89 $(sharedir
)/vgabios.bin \
90 $(mandir)/man1
/qemu
.1 )
92 ifneq ($(wildcard .depend
),)