aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:12:52 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:12:52 +0000
commit17759187b64c59096313ac4455b157a89990ad83 (patch)
tree2f9991c2f55783c77312cbb3d36f5d8b0c65d55a /rules.mak
parent807544e27d868c5b9ac7f4a0f0a325bc8ceb77f3 (diff)
downloadqemu-17759187b64c59096313ac4455b157a89990ad83.zip
qemu-17759187b64c59096313ac4455b157a89990ad83.tar.gz
qemu-17759187b64c59096313ac4455b157a89990ad83.tar.bz2
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 'rules.mak')
-rw-r--r--rules.mak10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
new file mode 100644
index 0000000..fe06978
--- /dev/null
+++ b/rules.mak
@@ -0,0 +1,10 @@
+
+%.o: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+
+%.o: %.S
+ $(CC) $(CPPFLAGS) -c -o $@ $<
+
+%.o: %.m
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+