# HG changeset patch # User Kim Alvefur # Date 1443305326 -7200 # Node ID 8678def0e53b3534a00bef1e06c6d142dbf9689e # Parent 18711292817491e8f5beed9f8e47614c970f60e1 util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built-in rules handle .o) diff -r 187112928174 -r 8678def0e53b util-src/Makefile --- 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)