Changeset

6880:8678def0e53b

util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built-in rules handle .o)
author Kim Alvefur <zash@zash.se>
date Sun, 27 Sep 2015 00:08:46 +0200
parents 6879:187112928174
children 6881:5886efd95c11
files util-src/Makefile
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/Makefile	Sun Sep 27 00:04:14 2015 +0200
+++ b/util-src/Makefile	Sun Sep 27 00:08:46 2015 +0200
@@ -33,9 +33,5 @@
 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)