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
32 $(MAKE
) -C tests
clean
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)"
49 install -m
644 pc-bios
/bios.bin pc-bios
/vgabios.bin \
50 pc-bios
/linux_boot.bin
"$(datadir)"
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 $(bindir)/qemu
$(bindir)/qemu-fast \
89 $(bindir)/qemu-system-ppc \
92 $(bindir)/qemu-sparc \
94 $(bindir)/qemu-mkcow \
96 $(datadir)/vgabios.bin \
97 $(datadir)/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
),)