summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoraliguori2009-01-21 19:12:52 +0100
committeraliguori2009-01-21 19:12:52 +0100
commit17759187b64c59096313ac4455b157a89990ad83 (patch)
tree2f9991c2f55783c77312cbb3d36f5d8b0c65d55a /Makefile
parentConsolidate compiler invocations (Avi Kivity) (diff)
downloadqemu-17759187b64c59096313ac4455b157a89990ad83.tar.gz
qemu-17759187b64c59096313ac4455b157a89990ad83.tar.xz
qemu-17759187b64c59096313ac4455b157a89990ad83.zip
Introduce rules.mak (Avi Kivity)
Add a file for common makefile rules. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6378 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 92a77ba643..ea76b69a5a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
# Makefile for QEMU.
include config-host.mak
+include $(SRC_PATH)/rules.mak
.PHONY: all clean cscope distclean dvi html info install install-doc \
recurse-all speed tar tarbin test
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
+
CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS)
LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
@@ -188,12 +190,6 @@ libqemu_user.a: $(USER_OBJS)
qemu-img$(EXESUF): qemu-img.o qemu-tool.o osdep.o $(BLOCK_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ -lz $(LIBS)
-%.o: %.c
- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-
-%.o: %.m
- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-
qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o osdep.o $(BLOCK_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ -lz $(LIBS)