1 include config-host.mak
5 CFLAGS
+= -mdynamic-no-pic
12 DEFINES
+=-D_GNU_SOURCE
14 TOOLS
=qemu-mkcow vmdk2raw
20 all: dyngen
$(EXESUF
) $(TOOLS
) qemu-doc.html qemu-tech.html qemu
.1
21 for d in
$(TARGET_DIRS
); do \
22 $(MAKE
) -C
$$d $@ || exit
1 ; \
25 qemu-mkcow
: qemu-mkcow.c
26 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(DEFINES
) -o
$@
$^
$(LIBS
)
29 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(DEFINES
) -o
$@
$^
$(LIBS
)
31 dyngen
$(EXESUF
): dyngen.c
32 $(HOST_CC
) $(CFLAGS
) $(DEFINES
) -o
$@
$^
35 # avoid old build problems by removing potentially incorrect old files
36 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
37 rm -f
*.o
*.a
$(TOOLS
) dyngen
$(EXESUF
) TAGS qemu.pod
38 $(MAKE
) -C tests
clean
39 for d in
$(TARGET_DIRS
); do \
40 $(MAKE
) -C
$$d $@ || exit
1 ; \
44 rm -f config-host.mak config-host.h
45 for d in
$(TARGET_DIRS
); do \
46 rm -rf
$$d || exit
1 ; \
52 install -m
755 -s
$(TOOLS
) "$(bindir)"
55 install -m
644 pc-bios
/bios.bin pc-bios
/vgabios.bin \
56 pc-bios
/vgabios-cirrus.bin \
58 pc-bios
/linux_boot.bin
"$(datadir)"
60 install -m
644 qemu-doc.html qemu-tech.html
"$(docdir)"
62 mkdir
-p
"$(mandir)/man1"
63 install qemu
.1 qemu-mkcow
.1 "$(mandir)/man1"
65 for d in
$(TARGET_DIRS
); do \
66 $(MAKE
) -C
$$d $@ || exit
1 ; \
69 # various test targets
74 etags
*.
[ch
] tests
/*.
[ch
]
78 texi2html
-monolithic
-number
$<
81 .
/texi2pod.pl
$< qemu.pod
82 pod2man
--section
=1 --center
=" " --release
=" " qemu.pod
> $@
84 FILE
=qemu-
$(shell cat VERSION
)
86 # tar release (use 'make -k tar' on a checkouted tree)
90 ( cd
/tmp
; tar zcvf ~
/$(FILE
).
tar.gz
$(FILE
) --exclude CVS
)
93 # generate a binary distribution
95 ( cd
/ ; tar zcvf ~
/qemu-
$(VERSION
)-i386.
tar.gz \
96 $(bindir)/qemu
$(bindir)/qemu-fast \
97 $(bindir)/qemu-system-ppc \
100 $(bindir)/qemu-sparc \
102 $(bindir)/qemu-mkcow
$(bindir)/vmdk2raw \
103 $(datadir)/bios.bin \
104 $(datadir)/vgabios.bin \
105 $(datadir)/vgabios-cirrus.bin \
106 $(datadir)/ppc_rom.bin \
107 $(datadir)/linux_boot.bin \
108 $(docdir
)/qemu-doc.html \
109 $(docdir
)/qemu-tech.html \
110 $(mandir)/man1
/qemu
.1 $(mandir)/man1
/qemu-mkcow
.1 )
112 ifneq ($(wildcard .depend
),)