2 # LuaSocket makefile configuration
11 SOCKET_SO=socket.$(EXT).$(SOCKET_V)
12 MIME_SO=mime.$(EXT).$(MIME_V)
16 # Lua includes and libraries
18 #LUAINC=-I/usr/local/include/lua50
19 #LUAINC=-I/usr/local/include/lua5.1
20 #LUAINC=-Ilua-5.1.1/src
23 # Compat-5.1 directory
28 # Top of your Lua installation
29 # Relative paths will be inside the src tree
31 #INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
32 #INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
33 INSTALL_TOP_SHARE=/usr/local/share/lua/5.1
34 INSTALL_TOP_LIB=/usr/local/lib/lua/5.1
40 # Compiler and linker settings
44 #DEF= -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
45 #CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
46 #LDFLAGS=-bundle -undefined dynamic_lookup
47 #LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
50 # Compiler and linker settings
54 CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
55 LDFLAGS=-O -shared -fpic
59 # End of makefile configuration