mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
58 lines
989 B
Plaintext
58 lines
989 B
Plaintext
#------
|
|
# LuaSocket makefile configuration
|
|
#
|
|
|
|
#------
|
|
# Output file names
|
|
#
|
|
EXT=so
|
|
SOCKET_V=2.0.0
|
|
MIME_V=1.0.0
|
|
SOCKET_SO=socket.$(EXT).$(SOCKET_V)
|
|
MIME_SO=mime.$(EXT).$(MIME_V)
|
|
UNIX_SO=unix.$(EXT)
|
|
|
|
#------
|
|
# Lua includes and libraries
|
|
#
|
|
LUAINC=-Ilua-5.0.2/include
|
|
LUALIB=-Llua-5.0.2/lib
|
|
|
|
#------
|
|
# Compat-5.1 directory
|
|
#
|
|
COMPAT=compat-5.1r5
|
|
|
|
#------
|
|
# Top of your Lua installation
|
|
# Relative paths will be inside the src tree
|
|
#
|
|
INSTALL_TOP_SHARE=share
|
|
INSTALL_TOP_LIB=lib
|
|
|
|
INSTALL_DATA=cp
|
|
INSTALL_EXEC=cp
|
|
|
|
#------
|
|
# Compiler and linker settings
|
|
# for Mac OS X
|
|
#
|
|
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
|
|
|
|
#------
|
|
# Compiler and linker settings
|
|
# for Linux
|
|
#CC=gcc
|
|
#DEF=-DLUASOCKET_DEBUG
|
|
#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
|
|
#LDFLAGS=-O -shared
|
|
#LD=gcc
|
|
|
|
#------
|
|
# End of makefile configuration
|
|
#
|