Software /
code /
prosody
Comparison
util-src/Makefile @ 511:f9ab28562fda
Potential fixes for building on Mac OSX
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 30 Nov 2008 19:02:00 +0000 |
parent | 491:25042b0d2626 |
child | 513:cadc9d6db7d8 |
comparison
equal
deleted
inserted
replaced
510:62c91dc9f9f3 | 511:f9ab28562fda |
---|---|
3 | 3 |
4 LUA_SUFFIX?=5.1 | 4 LUA_SUFFIX?=5.1 |
5 LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) | 5 LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) |
6 LUA_LIB?=lua$(LUA_SUFFIX) | 6 LUA_LIB?=lua$(LUA_SUFFIX) |
7 IDN_LIB?=idn | 7 IDN_LIB?=idn |
8 OPENSSL_LIB?=ssl | 8 OPENSSL_LIB?=crypto |
9 | 9 |
10 | 10 |
11 | 11 |
12 all: encodings.so hashes.so | 12 all: encodings.so hashes.so |
13 | 13 |
19 clean: | 19 clean: |
20 rm -f *.so | 20 rm -f *.so |
21 rm -f ../util/*.so | 21 rm -f ../util/*.so |
22 | 22 |
23 encodings.so: encodings.c | 23 encodings.so: encodings.c |
24 gcc -shared -fPIC encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so | 24 gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so |
25 | 25 |
26 hashes.so: hashes.c | 26 hashes.so: hashes.c |
27 gcc -shared -fPIC hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so | 27 gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so |
28 | 28 |