From 67b915a5dd52a05f8030cd9edc005effd9c8eea5 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 31 Mar 2004 23:37:16 +0000 Subject: win32 port (initial patch by kazu) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@692 c046a42c-6fe2-441c-8c8c-71466251a162 --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e55c072af3..f2be1f6f8a 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 ; \ -- cgit v1.2.3