2005-06-20 06:51:55 +02:00
|
|
|
#------
|
|
|
|
# LuaSocket makefile configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Output file names
|
|
|
|
#
|
|
|
|
EXT=so
|
2006-04-03 06:45:42 +02:00
|
|
|
SOCKET_V=2.0.1
|
|
|
|
MIME_V=1.0.1
|
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)
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Lua includes and libraries
|
|
|
|
#
|
2005-10-05 05:20:22 +02:00
|
|
|
LUAINC=-Ilua-5.0.2/include
|
|
|
|
LUALIB=-Llua-5.0.2/lib
|
2005-06-20 06:51:55 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Compat-5.1 directory
|
|
|
|
#
|
2006-03-19 22:22:21 +01:00
|
|
|
COMPAT=compat-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
|
2005-06-20 06:51:55 +02:00
|
|
|
#
|
2005-11-22 09:33:29 +01:00
|
|
|
INSTALL_TOP_SHARE=share
|
2005-08-23 07:53:14 +02:00
|
|
|
INSTALL_TOP_LIB=lib
|
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
|
|
|
#
|
2006-04-18 22:12:27 +02:00
|
|
|
#CC=gcc
|
|
|
|
#DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
|
|
|
|
#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
|
|
|
|
#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
|
2006-04-18 22:12:27 +02:00
|
|
|
CC=gcc
|
|
|
|
DEF=-DLUASOCKET_DEBUG
|
|
|
|
CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
|
|
|
|
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
|
|
|
|
#
|