aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-27 00:08:46 +0200
committerKim Alvefur <zash@zash.se>2015-09-27 00:08:46 +0200
commitffa983b26574bdf668422a1f152f52004e1ede9c (patch)
tree10eebc2a477491d7f7577439a0cf7b16085da7e7 /util-src
parent0941a2d8f4d0cd675c5b35f6da188bcf16eefb72 (diff)
downloadprosody-ffa983b26574bdf668422a1f152f52004e1ede9c.tar.gz
prosody-ffa983b26574bdf668422a1f152f52004e1ede9c.zip
util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built-in rules handle .o)
Diffstat (limited to 'util-src')
-rw-r--r--util-src/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/util-src/Makefile b/util-src/Makefile
index 91c60d7f..c71e06b4 100644
--- a/util-src/Makefile
+++ b/util-src/Makefile
@@ -33,9 +33,5 @@ encodings.so: encodings.o
hashes.so: hashes.o
$(CC) -o $@ $< $(LDFLAGS) -l$(OPENSSL_LIB)
-.c.o:
- $(CC) $(CFLAGS) -c -o $@ $<
-
-.o.so:
- $(LD) -o $@ $< $(LDFLAGS)
-
+%.so: %.o
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)