aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-31 23:37:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-31 23:37:16 +0000
commit67b915a5dd52a05f8030cd9edc005effd9c8eea5 (patch)
tree247689b53ca52d7d9cb4fc9f7ff65f293b61e01a /Makefile
parentbb27c19087ff0847484c111cbaf56a3fa7103684 (diff)
downloadqemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.zip
qemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.tar.gz
qemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.tar.bz2
win32 port (initial patch by kazu)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@692 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e55c072..f2be1f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
include config-host.mak
CFLAGS=-Wall -O2 -g
+ifdef CONFIG_WIN32
+CFLAGS+=-fpack-struct
+endif
LDFLAGS=-g
LIBS=
DEFINES+=-D_GNU_SOURCE
+ifndef CONFIG_WIN32
TOOLS=qemu-mkcow
+endif
-all: dyngen $(TOOLS) qemu-doc.html qemu.1
+all: dyngen$(EXESUF) $(TOOLS) qemu-doc.html qemu.1
for d in $(TARGET_DIRS); do \
make -C $$d $@ || exit 1 ; \
done
@@ -14,7 +19,7 @@ all: dyngen $(TOOLS) qemu-doc.html qemu.1
qemu-mkcow: qemu-mkcow.o
$(HOST_CC) -o $@ $^ $(LIBS)
-dyngen: dyngen.o
+dyngen$(EXESUF): dyngen.o
$(HOST_CC) -o $@ $^ $(LIBS)
%.o: %.c
@@ -23,7 +28,7 @@ dyngen: dyngen.o
clean:
# avoid old build problems by removing potentially incorrect old files
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
- rm -f *.o *.a $(TOOLS) dyngen TAGS qemu.pod
+ rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS qemu.pod
make -C tests clean
for d in $(TARGET_DIRS); do \
make -C $$d $@ || exit 1 ; \