diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/makefile | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--] | src/makefile | 174 |
1 files changed, 112 insertions, 62 deletions
diff --git a/src/makefile b/src/makefile index 2704a92..06f4d19 100644..100755 --- a/src/makefile +++ b/src/makefile | |||
@@ -12,34 +12,31 @@ | |||
12 | # | 12 | # |
13 | # make PLAT=linux DEBUG=DEBUG LUAV=5.2 prefix=/sw | 13 | # make PLAT=linux DEBUG=DEBUG LUAV=5.2 prefix=/sw |
14 | 14 | ||
15 | # PLAT: linux macosx win32 mingw | 15 | # PLAT: linux macosx win32 win64 mingw |
16 | # platform to build for | 16 | # platform to build for |
17 | PLAT?=linux | 17 | PLAT?=linux |
18 | 18 | ||
19 | # LUAV: 5.1 5.2 | 19 | # LUAV: 5.1 5.2 5.3 5.4 |
20 | # lua version to build against | 20 | # lua version to build against |
21 | LUAV?=5.1 | 21 | LUAV?=5.1 |
22 | 22 | ||
23 | # MYCFLAGS: to be set by user if needed | 23 | # MYCFLAGS: to be set by user if needed |
24 | MYCFLAGS= | 24 | MYCFLAGS?= |
25 | 25 | ||
26 | # MYLDFLAGS: to be set by user if needed | 26 | # MYLDFLAGS: to be set by user if needed |
27 | MYLDFLAGS= | 27 | MYLDFLAGS?= |
28 | 28 | ||
29 | # DEBUG: NODEBUG DEBUG | 29 | # DEBUG: NODEBUG DEBUG |
30 | # debug mode causes luasocket to collect and returns timing information useful | 30 | # debug mode causes luasocket to collect and returns timing information useful |
31 | # for testing and debugging luasocket itself | 31 | # for testing and debugging luasocket itself |
32 | DEBUG?=NODEBUG | 32 | DEBUG?=NODEBUG |
33 | 33 | ||
34 | # COMPAT: COMPAT NOCOMPAT | ||
35 | # when compiling for 5.2, use LUA_COMPAT_MODULE | ||
36 | COMPAT?=NOCOMPAT | ||
37 | |||
38 | # where lua headers are found for macosx builds | 34 | # where lua headers are found for macosx builds |
39 | # LUAINC_macosx: | 35 | # LUAINC_macosx: |
40 | # /opt/local/include | 36 | # /opt/local/include |
41 | LUAINC_macosx_base?=/opt/local/include | 37 | LUAINC_macosx_base?=/opt/local/include |
42 | LUAINC_macosx?=$(LUAINC_macosx_base)/lua/$(LUAV) | 38 | LUAINC_macosx?=$(LUAINC_macosx_base)/lua/$(LUAV) $(LUAINC_macosx_base)/lua$(LUAV) $(LUAINC_macosx_base)/lua-$(LUAV) |
39 | |||
43 | # FIXME default should this default to fink or to macports? | 40 | # FIXME default should this default to fink or to macports? |
44 | # What happens when more than one Lua version is installed? | 41 | # What happens when more than one Lua version is installed? |
45 | LUAPREFIX_macosx?=/opt/local | 42 | LUAPREFIX_macosx?=/opt/local |
@@ -52,16 +49,16 @@ LDIR_macosx?=share/lua/$(LUAV) | |||
52 | # /usr/local/include/lua$(LUAV) | 49 | # /usr/local/include/lua$(LUAV) |
53 | # where lua headers are found for linux builds | 50 | # where lua headers are found for linux builds |
54 | LUAINC_linux_base?=/usr/include | 51 | LUAINC_linux_base?=/usr/include |
55 | LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) | 52 | LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) $(LUAINC_linux_base)/lua$(LUAV) |
56 | LUAPREFIX_linux?=/usr/local | 53 | LUAPREFIX_linux?=/usr/local |
57 | CDIR_linux?=lib/lua/$(LUAV) | 54 | CDIR_linux?=lib/lua/$(LUAV) |
58 | LDIR_linux?=share/lua/$(LUAV) | 55 | LDIR_linux?=share/lua/$(LUAV) |
59 | 56 | ||
60 | # LUAINC_freebsd: | 57 | # LUAINC_freebsd: |
61 | # /usr/local/include/lua$(LUAV) | 58 | # /usr/local/include/lua$(LUAV) |
62 | # where lua headers are found for linux builds | 59 | # where lua headers are found for freebsd builds |
63 | LUAINC_freebsd_base?=/usr/local/include/ | 60 | LUAINC_freebsd_base?=/usr/local/include/ |
64 | LUAINC_freebsd?=$(LUAINC_freebsd_base)/lua$(LUAV) | 61 | LUAINC_freebsd?=$(LUAINC_freebsd_base)/lua/$(LUAV) $(LUAINC_freebsd_base)/lua$(LUAV) |
65 | LUAPREFIX_freebsd?=/usr/local/ | 62 | LUAPREFIX_freebsd?=/usr/local/ |
66 | CDIR_freebsd?=lib/lua/$(LUAV) | 63 | CDIR_freebsd?=lib/lua/$(LUAV) |
67 | LDIR_freebsd?=share/lua/$(LUAV) | 64 | LDIR_freebsd?=share/lua/$(LUAV) |
@@ -70,7 +67,7 @@ LDIR_freebsd?=share/lua/$(LUAV) | |||
70 | # LUAINC_mingw: | 67 | # LUAINC_mingw: |
71 | # /opt/local/include | 68 | # /opt/local/include |
72 | LUAINC_mingw_base?=/usr/include | 69 | LUAINC_mingw_base?=/usr/include |
73 | LUAINC_mingw?=$(LUAINC_mingw_base)/lua/$(LUAV) | 70 | LUAINC_mingw?=$(LUAINC_mingw_base)/lua/$(LUAV) $(LUAINC_mingw_base)/lua$(LUAV) |
74 | LUALIB_mingw_base?=/usr/bin | 71 | LUALIB_mingw_base?=/usr/bin |
75 | LUALIB_mingw?=$(LUALIB_mingw_base)/lua/$(LUAV)/lua$(subst .,,$(LUAV)).dll | 72 | LUALIB_mingw?=$(LUALIB_mingw_base)/lua/$(LUAV)/lua$(subst .,,$(LUAV)).dll |
76 | LUAPREFIX_mingw?=/usr | 73 | LUAPREFIX_mingw?=/usr |
@@ -81,13 +78,32 @@ LDIR_mingw?=lua/$(LUAV)/lua | |||
81 | # LUAINC_win32: | 78 | # LUAINC_win32: |
82 | # LUALIB_win32: | 79 | # LUALIB_win32: |
83 | # where lua headers and libraries are found for win32 builds | 80 | # where lua headers and libraries are found for win32 builds |
84 | LUAINC_win32_base?= | ||
85 | LUAINC_win32?=$(LUAINC_win32_base)/lua/$(LUAV) | ||
86 | PLATFORM_win32?=Release | ||
87 | LUAPREFIX_win32?= | 81 | LUAPREFIX_win32?= |
88 | CDIR_win32?=lua/$(LUAV)/$(PLATFORM_win32) | 82 | LUAINC_win32?=$(LUAPREFIX_win32)/include/lua/$(LUAV) $(LUAPREFIX_win32)/include/lua$(LUAV) |
89 | LDIR_win32?=lua/$(LUAV)/$(PLATFORM_win32)/lua | 83 | PLATFORM_win32?=Release |
90 | LUALIB_win32?=$(LUAPREFIX_win32)/lua/$(LUAV)/$(PLATFORM_win32) | 84 | CDIR_win32?=bin/lua/$(LUAV)/$(PLATFORM_win32) |
85 | LDIR_win32?=bin/lua/$(LUAV)/$(PLATFORM_win32)/lua | ||
86 | LUALIB_win32?=$(LUAPREFIX_win32)/lib/lua/$(LUAV)/$(PLATFORM_win32) | ||
87 | LUALIBNAME_win32?=lua$(subst .,,$(LUAV)).lib | ||
88 | |||
89 | # LUAINC_win64: | ||
90 | # LUALIB_win64: | ||
91 | # where lua headers and libraries are found for win64 builds | ||
92 | LUAPREFIX_win64?= | ||
93 | LUAINC_win64?=$(LUAPREFIX_win64)/include/lua/$(LUAV) $(LUAPREFIX_win64)/include/lua$(LUAV) | ||
94 | PLATFORM_win64?=x64/Release | ||
95 | CDIR_win64?=bin/lua/$(LUAV)/$(PLATFORM_win64) | ||
96 | LDIR_win64?=bin/lua/$(LUAV)/$(PLATFORM_win64)/lua | ||
97 | LUALIB_win64?=$(LUAPREFIX_win64)/lib/lua/$(LUAV)/$(PLATFORM_win64) | ||
98 | LUALIBNAME_win64?=lua$(subst .,,$(LUAV)).lib | ||
99 | |||
100 | |||
101 | # LUAINC_solaris: | ||
102 | LUAINC_solaris_base?=/usr/include | ||
103 | LUAINC_solaris?=$(LUAINC_solaris_base)/lua/$(LUAV) $(LUAINC_solaris_base)/lua$(LUAV) | ||
104 | LUAPREFIX_solaris?=/usr/local | ||
105 | CDIR_solaris?=lib/lua/$(LUAV) | ||
106 | LDIR_solaris?=share/lua/$(LUAV) | ||
91 | 107 | ||
92 | # prefix: /usr/local /usr /opt/local /sw | 108 | # prefix: /usr/local /usr /opt/local /sw |
93 | # the top of the default install tree | 109 | # the top of the default install tree |
@@ -98,7 +114,7 @@ LDIR?=$(LDIR_$(PLAT)) | |||
98 | 114 | ||
99 | # DESTDIR: (no default) | 115 | # DESTDIR: (no default) |
100 | # used by package managers to install into a temporary destination | 116 | # used by package managers to install into a temporary destination |
101 | DESTDIR= | 117 | DESTDIR?= |
102 | 118 | ||
103 | #------ | 119 | #------ |
104 | # Definitions below can be overridden on the make command line, but | 120 | # Definitions below can be overridden on the make command line, but |
@@ -131,11 +147,13 @@ print: | |||
131 | @echo LUALIB_$(PLAT)=$(LUALIB_$(PLAT)) | 147 | @echo LUALIB_$(PLAT)=$(LUALIB_$(PLAT)) |
132 | @echo INSTALL_TOP_CDIR=$(INSTALL_TOP_CDIR) | 148 | @echo INSTALL_TOP_CDIR=$(INSTALL_TOP_CDIR) |
133 | @echo INSTALL_TOP_LDIR=$(INSTALL_TOP_LDIR) | 149 | @echo INSTALL_TOP_LDIR=$(INSTALL_TOP_LDIR) |
150 | @echo CFLAGS=$(CFLAGS) | ||
151 | @echo LDFLAGS=$(LDFLAGS) | ||
134 | 152 | ||
135 | #------ | 153 | #------ |
136 | # Supported platforms | 154 | # Supported platforms |
137 | # | 155 | # |
138 | PLATS= macosx linux win32 mingw | 156 | PLATS= macosx linux win32 win64 mingw solaris |
139 | 157 | ||
140 | #------ | 158 | #------ |
141 | # Compiler and linker settings | 159 | # Compiler and linker settings |
@@ -143,14 +161,10 @@ PLATS= macosx linux win32 mingw | |||
143 | SO_macosx=so | 161 | SO_macosx=so |
144 | O_macosx=o | 162 | O_macosx=o |
145 | CC_macosx=gcc | 163 | CC_macosx=gcc |
146 | DEF_macosx= -DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN -DLUA_$(COMPAT)_MODULE \ | 164 | DEF_macosx= -DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN |
147 | -DLUASOCKET_API='__attribute__((visibility("default")))' \ | 165 | CFLAGS_macosx=$(LUAINC:%=-I%) $(DEF) -Wall -O2 -fno-common |
148 | -DUNIX_API='__attribute__((visibility("default")))' \ | 166 | LDFLAGS_macosx= -bundle -undefined dynamic_lookup -o |
149 | -DMIME_API='__attribute__((visibility("default")))' | 167 | LD_macosx=gcc |
150 | CFLAGS_macosx= -I$(LUAINC) $(DEF) -Wall -O2 -fno-common \ | ||
151 | -fvisibility=hidden | ||
152 | LDFLAGS_macosx= -bundle -undefined dynamic_lookup -o | ||
153 | LD_macosx= export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc | ||
154 | SOCKET_macosx=usocket.o | 168 | SOCKET_macosx=usocket.o |
155 | 169 | ||
156 | #------ | 170 | #------ |
@@ -159,13 +173,10 @@ SOCKET_macosx=usocket.o | |||
159 | SO_linux=so | 173 | SO_linux=so |
160 | O_linux=o | 174 | O_linux=o |
161 | CC_linux=gcc | 175 | CC_linux=gcc |
162 | DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \ | 176 | DEF_linux=-DLUASOCKET_$(DEBUG) |
163 | -DLUASOCKET_API='__attribute__((visibility("default")))' \ | 177 | CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \ |
164 | -DUNIX_API='__attribute__((visibility("default")))' \ | 178 | -Wimplicit -O2 -ggdb3 -fpic |
165 | -DMIME_API='__attribute__((visibility("default")))' | 179 | LDFLAGS_linux=-O -shared -fpic -o |
166 | CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ | ||
167 | -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden | ||
168 | LDFLAGS_linux=-O -shared -fpic -o | ||
169 | LD_linux=gcc | 180 | LD_linux=gcc |
170 | SOCKET_linux=usocket.o | 181 | SOCKET_linux=usocket.o |
171 | 182 | ||
@@ -175,28 +186,36 @@ SOCKET_linux=usocket.o | |||
175 | SO_freebsd=so | 186 | SO_freebsd=so |
176 | O_freebsd=o | 187 | O_freebsd=o |
177 | CC_freebsd=gcc | 188 | CC_freebsd=gcc |
178 | DEF_freebsd=-DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \ | 189 | DEF_freebsd=-DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN |
179 | -DLUASOCKET_API='__attribute__((visibility("default")))' \ | 190 | CFLAGS_freebsd=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \ |
180 | -DUNIX_API='__attribute__((visibility("default")))' \ | 191 | -Wimplicit -O2 -ggdb3 -fpic |
181 | -DMIME_API='__attribute__((visibility("default")))' | 192 | LDFLAGS_freebsd=-O -shared -fpic -o |
182 | CFLAGS_freebsd= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ | ||
183 | -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden | ||
184 | LDFLAGS_freebsd=-O -shared -fpic -o | ||
185 | LD_freebsd=gcc | 193 | LD_freebsd=gcc |
186 | SOCKET_freebsd=usocket.o | 194 | SOCKET_freebsd=usocket.o |
187 | 195 | ||
188 | #------ | 196 | #------ |
189 | # Compiler and linker settings | 197 | # Compiler and linker settings |
198 | # for Solaris | ||
199 | SO_solaris=so | ||
200 | O_solaris=o | ||
201 | CC_solaris=gcc | ||
202 | DEF_solaris=-DLUASOCKET_$(DEBUG) | ||
203 | CFLAGS_solaris=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \ | ||
204 | -Wimplicit -O2 -ggdb3 -fpic | ||
205 | LDFLAGS_solaris=-lnsl -lsocket -lresolv -O -shared -fpic -o | ||
206 | LD_solaris=gcc | ||
207 | SOCKET_solaris=usocket.o | ||
208 | |||
209 | #------ | ||
210 | # Compiler and linker settings | ||
190 | # for MingW | 211 | # for MingW |
191 | SO_mingw=dll | 212 | SO_mingw=dll |
192 | O_mingw=o | 213 | O_mingw=o |
193 | CC_mingw=gcc | 214 | CC_mingw=gcc |
194 | DEF_mingw= -DLUASOCKET_INET_PTON -DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \ | 215 | DEF_mingw= -DLUASOCKET_$(DEBUG) \ |
195 | -DWINVER=0x0501 -DLUASOCKET_API='__declspec(dllexport)' \ | 216 | -DWINVER=0x0501 |
196 | -DMIME_API='__declspec(dllexport)' | 217 | CFLAGS_mingw=$(LUAINC:%=-I%) $(DEF) -Wall -O2 -fno-common |
197 | CFLAGS_mingw= -I$(LUAINC) $(DEF) -Wall -O2 -fno-common \ | 218 | LDFLAGS_mingw= $(LUALIB) -shared -Wl,-s -lws2_32 -o |
198 | -fvisibility=hidden | ||
199 | LDFLAGS_mingw= $(LUALIB) -shared -Wl,-s -lws2_32 -o | ||
200 | LD_mingw=gcc | 219 | LD_mingw=gcc |
201 | SOCKET_mingw=wsocket.o | 220 | SOCKET_mingw=wsocket.o |
202 | 221 | ||
@@ -208,34 +227,55 @@ SO_win32=dll | |||
208 | O_win32=obj | 227 | O_win32=obj |
209 | CC_win32=cl | 228 | CC_win32=cl |
210 | DEF_win32= //D "WIN32" //D "NDEBUG" //D "_WINDOWS" //D "_USRDLL" \ | 229 | DEF_win32= //D "WIN32" //D "NDEBUG" //D "_WINDOWS" //D "_USRDLL" \ |
211 | //D "LUASOCKET_API=__declspec(dllexport)" //D "_CRT_SECURE_NO_WARNINGS" \ | 230 | //D "_CRT_SECURE_NO_WARNINGS" \ |
212 | //D "_WINDLL" //D "LUA_$(COMPAT)_MODULE" \ | 231 | //D "_WINDLL" \ |
213 | //D "MIME_API=__declspec(dllexport)" \ | 232 | //D "LUASOCKET_$(DEBUG)" |
214 | //D "LUASOCKET_$(DEBUG)" | 233 | CFLAGS_win32=$(LUAINC:%=//I "%") $(DEF) //O2 //Ot //MD //W3 //nologo |
215 | CFLAGS_win32=//I "$(LUAINC)" $(DEF) //O2 //Ot //MD //W3 //nologo | ||
216 | LDFLAGS_win32= //nologo //link //NOLOGO //DLL //INCREMENTAL:NO \ | 234 | LDFLAGS_win32= //nologo //link //NOLOGO //DLL //INCREMENTAL:NO \ |
217 | //MANIFEST //MANIFESTFILE:"intermediate.manifest" \ | 235 | //MANIFEST //MANIFESTFILE:"intermediate.manifest" \ |
218 | //MANIFESTUAC:"level='asInvoker' uiAccess='false'" \ | 236 | /MANIFESTUAC:"level='asInvoker' uiAccess='false'" \ |
219 | //SUBSYSTEM:WINDOWS //OPT:REF //OPT:ICF //DYNAMICBASE:NO \ | 237 | //SUBSYSTEM:WINDOWS //OPT:REF //OPT:ICF //DYNAMICBASE:NO \ |
220 | //MACHINE:X86 /LIBPATH:"$(shell cmd //c echo $(LUALIB))" \ | 238 | //MACHINE:X86 /LIBPATH:"$(LUALIB)" \ |
221 | lua$(subst .,,$(LUAV)).lib ws2_32.lib //OUT: | 239 | $(LUALIBNAME_win32) ws2_32.lib //OUT: |
240 | |||
222 | LD_win32=cl | 241 | LD_win32=cl |
223 | SOCKET_win32=wsocket.obj | 242 | SOCKET_win32=wsocket.obj |
224 | 243 | ||
244 | #------ | ||
245 | # Compiler and linker settings | ||
246 | # for Win64 | ||
247 | SO_win64=dll | ||
248 | O_win64=obj | ||
249 | CC_win64=cl | ||
250 | DEF_win64= //D "WIN32" //D "NDEBUG" //D "_WINDOWS" //D "_USRDLL" \ | ||
251 | //D "_CRT_SECURE_NO_WARNINGS" \ | ||
252 | //D "_WINDLL" \ | ||
253 | //D "LUASOCKET_$(DEBUG)" | ||
254 | CFLAGS_win64=$(LUAINC:%=//I "%") $(DEF) //O2 //Ot //MD //W3 //nologo | ||
255 | LDFLAGS_win64= //nologo //link //NOLOGO //DLL //INCREMENTAL:NO \ | ||
256 | //MANIFEST //MANIFESTFILE:"intermediate.manifest" \ | ||
257 | /MANIFESTUAC:"level='asInvoker' uiAccess='false'" \ | ||
258 | //SUBSYSTEM:WINDOWS //OPT:REF //OPT:ICF //DYNAMICBASE:NO \ | ||
259 | /LIBPATH:"$(LUALIB)" \ | ||
260 | $(LUALIBNAME_win64) ws2_32.lib //OUT: | ||
261 | |||
262 | LD_win64=cl | ||
263 | SOCKET_win64=wsocket.obj | ||
264 | |||
225 | .SUFFIXES: .obj | 265 | .SUFFIXES: .obj |
226 | 266 | ||
227 | .c.obj: | 267 | .c.obj: |
228 | $(CC) $(LUASOCKET_CFLAGS) //Fo"$@" //c $< | 268 | $(CC) $(CFLAGS) //Fo"$@" //c $< |
229 | 269 | ||
230 | #------ | 270 | #------ |
231 | # Output file names | 271 | # Output file names |
232 | # | 272 | # |
233 | SO=$(SO_$(PLAT)) | 273 | SO=$(SO_$(PLAT)) |
234 | O=$(O_$(PLAT)) | 274 | O=$(O_$(PLAT)) |
235 | SOCKET_V=3.0-rc1 | 275 | SOCKET_V=3.0.0 |
236 | MIME_V=1.0.3 | 276 | MIME_V=1.0.3 |
237 | SOCKET_SO=socket.$(SO).$(SOCKET_V) | 277 | SOCKET_SO=socket-$(SOCKET_V).$(SO) |
238 | MIME_SO=mime.$(SO).$(MIME_V) | 278 | MIME_SO=mime-$(MIME_V).$(SO) |
239 | UNIX_SO=unix.$(SO) | 279 | UNIX_SO=unix.$(SO) |
240 | SERIAL_SO=serial.$(SO) | 280 | SERIAL_SO=serial.$(SO) |
241 | SOCKET=$(SOCKET_$(PLAT)) | 281 | SOCKET=$(SOCKET_$(PLAT)) |
@@ -286,6 +326,9 @@ UNIX_OBJS=\ | |||
286 | timeout.$(O) \ | 326 | timeout.$(O) \ |
287 | io.$(O) \ | 327 | io.$(O) \ |
288 | usocket.$(O) \ | 328 | usocket.$(O) \ |
329 | unixstream.$(O) \ | ||
330 | unixdgram.$(O) \ | ||
331 | compat.$(O) \ | ||
289 | unix.$(O) | 332 | unix.$(O) |
290 | 333 | ||
291 | #------ | 334 | #------ |
@@ -293,6 +336,7 @@ UNIX_OBJS=\ | |||
293 | # | 336 | # |
294 | SERIAL_OBJS=\ | 337 | SERIAL_OBJS=\ |
295 | buffer.$(O) \ | 338 | buffer.$(O) \ |
339 | compat.$(O) \ | ||
296 | auxiliar.$(O) \ | 340 | auxiliar.$(O) \ |
297 | options.$(O) \ | 341 | options.$(O) \ |
298 | timeout.$(O) \ | 342 | timeout.$(O) \ |
@@ -331,12 +375,18 @@ macosx: | |||
331 | win32: | 375 | win32: |
332 | $(MAKE) all PLAT=win32 | 376 | $(MAKE) all PLAT=win32 |
333 | 377 | ||
378 | win64: | ||
379 | $(MAKE) all PLAT=win64 | ||
380 | |||
334 | linux: | 381 | linux: |
335 | $(MAKE) all-unix PLAT=linux | 382 | $(MAKE) all-unix PLAT=linux |
336 | 383 | ||
337 | mingw: | 384 | mingw: |
338 | $(MAKE) all PLAT=mingw | 385 | $(MAKE) all PLAT=mingw |
339 | 386 | ||
387 | solaris: | ||
388 | $(MAKE) all-unix PLAT=solaris | ||
389 | |||
340 | none: | 390 | none: |
341 | @echo "Please run" | 391 | @echo "Please run" |
342 | @echo " make PLATFORM" | 392 | @echo " make PLATFORM" |
@@ -359,7 +409,7 @@ $(UNIX_SO): $(UNIX_OBJS) | |||
359 | $(SERIAL_SO): $(SERIAL_OBJS) | 409 | $(SERIAL_SO): $(SERIAL_OBJS) |
360 | $(LD) $(SERIAL_OBJS) $(LDFLAGS)$@ | 410 | $(LD) $(SERIAL_OBJS) $(LDFLAGS)$@ |
361 | 411 | ||
362 | install: | 412 | install: |
363 | $(INSTALL_DIR) $(INSTALL_TOP_LDIR) | 413 | $(INSTALL_DIR) $(INSTALL_TOP_LDIR) |
364 | $(INSTALL_DATA) $(TO_TOP_LDIR) $(INSTALL_TOP_LDIR) | 414 | $(INSTALL_DATA) $(TO_TOP_LDIR) $(INSTALL_TOP_LDIR) |
365 | $(INSTALL_DIR) $(INSTALL_SOCKET_LDIR) | 415 | $(INSTALL_DIR) $(INSTALL_SOCKET_LDIR) |