2005-06-20 06:51:55 +02:00
|
|
|
#------
|
|
|
|
# LuaSocket makefile configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Output file names
|
|
|
|
#
|
|
|
|
EXT=so
|
2007-06-12 01:44:54 +02:00
|
|
|
SOCKET_V=2.0.2
|
|
|
|
MIME_V=1.0.2
|
2005-08-23 07:53:14 +02:00
|
|
|
SOCKET_SO=socket.$(EXT).$(SOCKET_V)
|
|
|
|
MIME_SO=mime.$(EXT).$(MIME_V)
|
2005-06-20 06:51:55 +02:00
|
|
|
UNIX_SO=unix.$(EXT)
|
2012-02-24 02:12:37 +01:00
|
|
|
SERIAL_SO=serial.$(EXT)
|
2005-06-20 06:51:55 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Lua includes and libraries
|
|
|
|
#
|
2007-03-12 05:08:40 +01:00
|
|
|
#LUAINC=-I/usr/local/include/lua50
|
2006-04-20 06:16:23 +02:00
|
|
|
#LUAINC=-I/usr/local/include/lua5.1
|
2011-08-09 02:12:34 +02:00
|
|
|
LUAINC=-I/usr/include/lua5.1
|
2007-06-12 02:06:29 +02:00
|
|
|
#LUAINC=-Ilua-5.1.1/src
|
2005-06-20 06:51:55 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Compat-5.1 directory
|
|
|
|
#
|
2011-09-27 21:26:38 +02:00
|
|
|
#COMPAT=-Icompat-5.1r5
|
2005-06-20 06:51:55 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Top of your Lua installation
|
2005-08-23 07:53:14 +02:00
|
|
|
# Relative paths will be inside the src tree
|
2011-06-17 23:36:20 +02:00
|
|
|
|
|
|
|
DESTDIR=
|
|
|
|
prefix=/usr/local
|
|
|
|
top=$(DESTDIR)$(prefix)
|
|
|
|
|
2007-03-12 05:08:40 +01:00
|
|
|
#INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
|
|
|
|
#INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
|
2011-06-17 23:36:20 +02:00
|
|
|
INSTALL_TOP_SHARE=$(top)/share/lua/5.1
|
|
|
|
INSTALL_TOP_LIB=$(top)/lib/lua/5.1
|
2005-06-20 06:51:55 +02:00
|
|
|
|
|
|
|
INSTALL_DATA=cp
|
|
|
|
INSTALL_EXEC=cp
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Compiler and linker settings
|
2005-09-30 00:26:35 +02:00
|
|
|
# for Mac OS X
|
2005-06-20 06:51:55 +02:00
|
|
|
#
|
2007-06-12 02:06:29 +02:00
|
|
|
#CC=gcc
|
|
|
|
#DEF= -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
|
2011-09-27 21:26:38 +02:00
|
|
|
#CFLAGS= $(LUAINC) $(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
|
2007-06-12 02:06:29 +02:00
|
|
|
#LDFLAGS=-bundle -undefined dynamic_lookup
|
|
|
|
#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
|
2005-10-05 05:20:22 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Compiler and linker settings
|
|
|
|
# for Linux
|
2007-06-12 02:06:29 +02:00
|
|
|
CC=gcc
|
|
|
|
DEF=-DLUASOCKET_DEBUG
|
2011-09-27 21:26:38 +02:00
|
|
|
CFLAGS= $(LUAINC) $(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
|
2007-06-12 02:06:29 +02:00
|
|
|
LDFLAGS=-O -shared -fpic
|
|
|
|
LD=gcc
|
2005-09-30 00:26:35 +02:00
|
|
|
|
2005-06-20 06:51:55 +02:00
|
|
|
#------
|
|
|
|
# End of makefile configuration
|
|
|
|
#
|