comparison config @ 0:4b915342e2a8

LuaSocket 2.0.2 + CMake build description.
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 26 Aug 2008 18:40:01 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4b915342e2a8
1 #------
2 # LuaSocket makefile configuration
3 #
4
5 #------
6 # Output file names
7 #
8 EXT=so
9 SOCKET_V=2.0.2
10 MIME_V=1.0.2
11 SOCKET_SO=socket.$(EXT).$(SOCKET_V)
12 MIME_SO=mime.$(EXT).$(MIME_V)
13 UNIX_SO=unix.$(EXT)
14
15 #------
16 # Lua includes and libraries
17 #
18 #LUAINC=-I/usr/local/include/lua50
19 #LUAINC=-I/usr/local/include/lua5.1
20 #LUAINC=-Ilua-5.1.1/src
21
22 #------
23 # Compat-5.1 directory
24 #
25 #COMPAT=compat-5.1r5
26
27 #------
28 # Top of your Lua installation
29 # Relative paths will be inside the src tree
30 #
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
35
36 INSTALL_DATA=cp
37 INSTALL_EXEC=cp
38
39 #------
40 # Compiler and linker settings
41 # for Mac OS X
42 #
43 #CC=gcc
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
48
49 #------
50 # Compiler and linker settings
51 # for Linux
52 CC=gcc
53 DEF=-DLUASOCKET_DEBUG
54 CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
55 LDFLAGS=-O -shared -fpic
56 LD=gcc
57
58 #------
59 # End of makefile configuration
60 #