mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
No need for build script: makefile target instead.
This commit is contained in:
parent
427220c7b1
commit
fbe184f28a
@ -1,9 +0,0 @@
|
||||
LUA=../lua-5.2.1/src/
|
||||
BUILD_FLAGS="-Wl,-s -O2 -shared -D LUA_COMPAT_MODULE -D IPV6_V6ONLY=27 -D WINVER=0x0501 -s -I src -I $LUA -L $LUA"
|
||||
|
||||
mkdir -p lib/mime lib/socket
|
||||
gcc $BUILD_FLAGS -o "lib/mime/core.dll" src/mime.c -llua \
|
||||
|| { echo "Error: failed to build LuaSocket/mime"; exit 1; }
|
||||
gcc $BUILD_FLAGS -o "lib/socket/core.dll" \
|
||||
src/{luasocket.c,auxiliar.c,buffer.c,except.c,inet.c,io.c,options.c,select.c,tcp.c,timeout.c,udp.c,wsocket.c} -lwsock32 -lws2_32 -llua \
|
||||
|| { echo "Error: failed to build LuaSocket/socket"; exit 1; }
|
Loading…
Reference in New Issue
Block a user