aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:13:02 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:13:02 +0000
commit3aa892d75f38c339a1d7e09126e84f06b05b4232 (patch)
tree4c767613dc06082dfd7282eb70dd75e8fa1da10c /rules.mak
parent17759187b64c59096313ac4455b157a89990ad83 (diff)
Consolidate linker rules (Avi Kivity)
Use generic rules where posssible, and a LINK macro where not. 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@6379 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index fe0697820f..dd567802bd 100644
--- a/rules.mak
+++ b/rules.mak
@@ -8,3 +8,7 @@
%.o: %.m
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+%$(EXESUF): %.o
+ $(LINK)