aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/Makefile
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2010-12-14 15:03:37 +0100
committerTobias Markmann <tm@ayena.de>2010-12-14 15:03:37 +0100
commit93b0dcf56a5b0460abeb1f5d542e5a77178f779d (patch)
tree085dcfa23c53f3e2303430d9940ba85fe140cc55 /util-src/Makefile
parentd1d5bb6d1c37e09ed16ed65556fc1d072f26cf9c (diff)
downloadprosody-93b0dcf56a5b0460abeb1f5d542e5a77178f779d.tar.gz
prosody-93b0dcf56a5b0460abeb1f5d542e5a77178f779d.zip
util.encodings: Support for ICU for IDNA operations.
Diffstat (limited to 'util-src/Makefile')
-rw-r--r--util-src/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/util-src/Makefile b/util-src/Makefile
index d28ffe81..008a1934 100644
--- a/util-src/Makefile
+++ b/util-src/Makefile
@@ -7,10 +7,18 @@ LUA_LIB?=lua$(LUA_SUFFIX)
IDN_LIB?=idn
OPENSSL_LIB?=crypto
CC?=gcc
+CXX?=g++
LD?=gcc
.SUFFIXES: .c .o .so
+encodings.o:
+ $(CXX) $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.cpp
+
+encodings.so: encodings.o
+ MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
+ $(CXX) $(LDFLAGS) $(IDNA_LIBS) -o encodings.so encodings.o -lcrypto
+
.c.o:
$(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o $@ $<