Software /
code /
prosody
Annotate
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 |
rev | line source |
---|---|
442
722f63c70a77
Makefile now works on windows with Microsoft's compiler
Waqas Hussain <waqas20@gmail.com>
parents:
418
diff
changeset
|
1 |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
2 include ../config.unix |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
4 LUA_SUFFIX?=5.1 |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
5 LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
6 LUA_LIB?=lua$(LUA_SUFFIX) |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
7 IDN_LIB?=idn |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
8 OPENSSL_LIB?=crypto |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 all: encodings.so hashes.so |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 install: encodings.so hashes.so |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 strip *.so |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 cp *.so ../util/ |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 clean: |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
20 rm -f *.so |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
21 rm -f ../util/*.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
23 encodings.so: encodings.c |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
24 gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
25 |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
26 hashes.so: hashes.c |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
27 gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
28 |