aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-15 17:28:36 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-15 17:28:36 +0000
commit223d4670a0cf539a0e8cc6a23aad28a8340dded8 (patch)
tree4202f66b0b7c95fa6e3f1b932f58168fcaebd70b /Makefile
parent50a9569b591a83071052614f2ff497ff2f2aa2ef (diff)
Split block-raw.c into block-raw-posix.c and block-raw-win32.c, by
Anthony Liguori. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3814 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5eae9428b4..bc91d29b29 100644
--- a/Makefile
+++ b/Makefile
@@ -119,9 +119,16 @@ libqemu_common.a: $(OBJS)
rm -f $@
$(AR) rcs $@ $(OBJS)
+QEMU_IMG_BLOCK_OBJS = $(BLOCK_OBJS)
+ifdef CONFIG_WIN32
+QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-win32.o
+else
+QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-posix.o
+endif
+
######################################################################
-qemu-img$(EXESUF): qemu-img.o qemu-img-block.o qemu-img-block-raw.o $(BLOCK_OBJS)
+qemu-img$(EXESUF): qemu-img.o qemu-img-block.o $(QEMU_IMG_BLOCK_OBJS)
$(CC) $(LDFLAGS) $(BASE_LDFLAGS) -o $@ $^ -lz $(LIBS)
qemu-img-%.o: %.c