From ff4b7235372ef96bc5663fce4aa7715c287e1665 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 26 Dec 2010 05:01:58 +0000 Subject: util-src/Makefile: Clean up and remove unnecessary all linking --- util-src/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/util-src/Makefile b/util-src/Makefile index c3669c35..15af3e68 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -12,19 +12,20 @@ LD?=gcc .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 -- cgit v1.2.3