util-src/Makefile
author Matthew Wild <mwild1@gmail.com>
Sat, 29 Nov 2008 02:07:33 +0000
changeset 463 a2452d3bd828
parent 445 f68f39a62ecc
child 475 fe861de7a4fc
permissions -rw-r--r--
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
a2452d3bd828 Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents: 445
diff changeset
     8
OPENSSL_LIB?=ssl
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
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
    24
	gcc -shared 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
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
    27
	gcc -shared 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