# HG changeset patch # User Matthew Wild # Date 1293339718 0 # Node ID 8a0561a647f06b94367cdcb6703bae58224a26db # Parent 9e9aaed03021c2cc3df3a549631f95dc0cdcb805 util-src/Makefile: Clean up and remove unnecessary all linking diff -r 9e9aaed03021 -r 8a0561a647f0 util-src/Makefile --- a/util-src/Makefile Sun Dec 26 05:00:45 2010 +0000 +++ b/util-src/Makefile Sun Dec 26 05:01:58 2010 +0000 @@ -12,19 +12,20 @@ .SUFFIXES: .c .o .so -encodings.o: - $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.c - encodings.so: encodings.o MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; - $(CC) $(LDFLAGS) $(IDNA_LIBS) -o encodings.so encodings.o -lcrypto + $(CC) $(LDFLAGS) $(IDNA_LIBS) -o $@ $< + +hashes.so: hashes.o + MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; + $(CC) $(LDFLAGS) -l$(OPENSSL_LIB) -o $@ $< .c.o: $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o $@ $< .o.so: MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; - $(LD) $(LDFLAGS) -o $@ $< -lidn -lcrypto + $(LD) $(LDFLAGS) -o $@ $< all: encodings.so hashes.so pposix.so signal.so