aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-12 00:06:29 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-12 00:06:29 +0000
commite381bde1ea74552c227e33dbb0c73a2fade897f6 (patch)
treef4853361e8f88f8c38c605082e7ebc634c1583d5
parentc893c7abfb8edbb5124909ac25e36cf089419dd2 (diff)
downloadluasocket-e381bde1ea74552c227e33dbb0c73a2fade897f6.tar.gz
luasocket-e381bde1ea74552c227e33dbb0c73a2fade897f6.tar.bz2
luasocket-e381bde1ea74552c227e33dbb0c73a2fade897f6.zip
Modified and tested on Linux.
-rw-r--r--config22
-rw-r--r--luasocket.sln8
-rw-r--r--mime.vcproj9
-rw-r--r--socket.vcproj9
4 files changed, 25 insertions, 23 deletions
diff --git a/config b/config
index 6fd1646..49958eb 100644
--- a/config
+++ b/config
@@ -17,7 +17,7 @@ UNIX_SO=unix.$(EXT)
17# 17#
18#LUAINC=-I/usr/local/include/lua50 18#LUAINC=-I/usr/local/include/lua50
19#LUAINC=-I/usr/local/include/lua5.1 19#LUAINC=-I/usr/local/include/lua5.1
20LUAINC=-Ilua-5.1.1/src 20#LUAINC=-Ilua-5.1.1/src
21 21
22#------ 22#------
23# Compat-5.1 directory 23# Compat-5.1 directory
@@ -40,20 +40,20 @@ INSTALL_EXEC=cp
40# Compiler and linker settings 40# Compiler and linker settings
41# for Mac OS X 41# for Mac OS X
42# 42#
43CC=gcc 43#CC=gcc
44DEF= -DAAA -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN 44#DEF= -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
45CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common 45#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
46LDFLAGS=-bundle -undefined dynamic_lookup 46#LDFLAGS=-bundle -undefined dynamic_lookup
47LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc 47#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
48 48
49#------ 49#------
50# Compiler and linker settings 50# Compiler and linker settings
51# for Linux 51# for Linux
52#CC=gcc 52CC=gcc
53#DEF=-DLUASOCKET_DEBUG 53DEF=-DLUASOCKET_DEBUG
54#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic 54CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
55#LDFLAGS=-O -shared -fpic 55LDFLAGS=-O -shared -fpic
56#LD=gcc 56LD=gcc
57 57
58#------ 58#------
59# End of makefile configuration 59# End of makefile configuration
diff --git a/luasocket.sln b/luasocket.sln
index 006b7f0..a674c33 100644
--- a/luasocket.sln
+++ b/luasocket.sln
@@ -7,6 +7,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mime", "mime.vcproj", "{128
7 ProjectSection(ProjectDependencies) = postProject 7 ProjectSection(ProjectDependencies) = postProject
8 EndProjectSection 8 EndProjectSection
9EndProject 9EndProject
10Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libluasocket", "libluasocket.vcproj", "{599EAD40-60EE-4043-9C14-AE090A8A092D}"
11 ProjectSection(ProjectDependencies) = postProject
12 EndProjectSection
13EndProject
10Global 14Global
11 GlobalSection(SolutionConfiguration) = preSolution 15 GlobalSection(SolutionConfiguration) = preSolution
12 Debug = Debug 16 Debug = Debug
@@ -21,6 +25,10 @@ Global
21 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug.Build.0 = Debug|Win32 25 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug.Build.0 = Debug|Win32
22 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release.ActiveCfg = Release|Win32 26 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release.ActiveCfg = Release|Win32
23 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release.Build.0 = Release|Win32 27 {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release.Build.0 = Release|Win32
28 {599EAD40-60EE-4043-9C14-AE090A8A092D}.Debug.ActiveCfg = Debug|Win32
29 {599EAD40-60EE-4043-9C14-AE090A8A092D}.Debug.Build.0 = Debug|Win32
30 {599EAD40-60EE-4043-9C14-AE090A8A092D}.Release.ActiveCfg = Release|Win32
31 {599EAD40-60EE-4043-9C14-AE090A8A092D}.Release.Build.0 = Release|Win32
24 EndGlobalSection 32 EndGlobalSection
25 GlobalSection(ExtensibilityGlobals) = postSolution 33 GlobalSection(ExtensibilityGlobals) = postSolution
26 EndGlobalSection 34 EndGlobalSection
diff --git a/mime.vcproj b/mime.vcproj
index 4cc2b8a..8ad7900 100644
--- a/mime.vcproj
+++ b/mime.vcproj
@@ -19,7 +19,7 @@
19 <Tool 19 <Tool
20 Name="VCCLCompilerTool" 20 Name="VCCLCompilerTool"
21 Optimization="0" 21 Optimization="0"
22 AdditionalIncludeDirectories="src\compat-5.1r5, h:\include\lua50" 22 AdditionalIncludeDirectories="h:\include\lua5.1"
23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)" 23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)"
24 MinimalRebuild="TRUE" 24 MinimalRebuild="TRUE"
25 BasicRuntimeChecks="3" 25 BasicRuntimeChecks="3"
@@ -69,7 +69,7 @@
69 CharacterSet="2"> 69 CharacterSet="2">
70 <Tool 70 <Tool
71 Name="VCCLCompilerTool" 71 Name="VCCLCompilerTool"
72 AdditionalIncludeDirectories="src\compat-5.1r5, h:\include\lua50" 72 AdditionalIncludeDirectories="h:\include\lua5.1"
73 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)" 73 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)"
74 RuntimeLibrary="2" 74 RuntimeLibrary="2"
75 UsePrecompiledHeader="0" 75 UsePrecompiledHeader="0"
@@ -119,9 +119,6 @@
119 Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" 119 Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
120 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> 120 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
121 <File 121 <File
122 RelativePath=".\src\compat-5.1r5\compat-5.1.c">
123 </File>
124 <File
125 RelativePath="src\mime.c"> 122 RelativePath="src\mime.c">
126 </File> 123 </File>
127 </Filter> 124 </Filter>
@@ -136,7 +133,7 @@
136 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> 133 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
137 </Filter> 134 </Filter>
138 <File 135 <File
139 RelativePath="..\..\lib\lua50.dll.lib"> 136 RelativePath="..\..\lib\lua5.1.dll.lib">
140 </File> 137 </File>
141 </Files> 138 </Files>
142 <Globals> 139 <Globals>
diff --git a/socket.vcproj b/socket.vcproj
index 64a6a3f..b7c4a08 100644
--- a/socket.vcproj
+++ b/socket.vcproj
@@ -19,7 +19,7 @@
19 <Tool 19 <Tool
20 Name="VCCLCompilerTool" 20 Name="VCCLCompilerTool"
21 Optimization="0" 21 Optimization="0"
22 AdditionalIncludeDirectories="src\compat-5.1r5, h:\include\lua50" 22 AdditionalIncludeDirectories="h:\include\lua5.1"
23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport)" 23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport)"
24 MinimalRebuild="TRUE" 24 MinimalRebuild="TRUE"
25 BasicRuntimeChecks="3" 25 BasicRuntimeChecks="3"
@@ -70,7 +70,7 @@
70 CharacterSet="2"> 70 CharacterSet="2">
71 <Tool 71 <Tool
72 Name="VCCLCompilerTool" 72 Name="VCCLCompilerTool"
73 AdditionalIncludeDirectories="src\compat-5.1r5, h:\include\lua50" 73 AdditionalIncludeDirectories="h:\include\lua5.1"
74 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG" 74 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG"
75 RuntimeLibrary="2" 75 RuntimeLibrary="2"
76 UsePrecompiledHeader="0" 76 UsePrecompiledHeader="0"
@@ -127,9 +127,6 @@
127 RelativePath="src\buffer.c"> 127 RelativePath="src\buffer.c">
128 </File> 128 </File>
129 <File 129 <File
130 RelativePath=".\src\compat-5.1r5\compat-5.1.c">
131 </File>
132 <File
133 RelativePath="src\except.c"> 130 RelativePath="src\except.c">
134 </File> 131 </File>
135 <File 132 <File
@@ -177,7 +174,7 @@
177 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> 174 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
178 </Filter> 175 </Filter>
179 <File 176 <File
180 RelativePath="..\..\lib\lua50.dll.lib"> 177 RelativePath="..\..\lib\lua5.1.dll.lib">
181 </File> 178 </File>
182 </Files> 179 </Files>
183 <Globals> 180 <Globals>