diff options
-rw-r--r-- | util-src/Makefile | 11 |
1 files 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 |