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
commit409f3ed35702c593b451357d27c626e4a891de35 (patch)
tree10eebc2a477491d7f7577439a0cf7b16085da7e7 /util-src
parentb8d80dfd493c62d7e7ab1ce2f05016e142d263f6 (diff)
downloadprosody-409f3ed35702c593b451357d27c626e4a891de35.tar.gz
prosody-409f3ed35702c593b451357d27c626e4a891de35.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)