2000-12-29 23:15:09 +01:00
|
|
|
#--------------------------------------------------------------------------
|
2001-01-25 22:49:48 +01:00
|
|
|
# Distribution makefile
|
2000-12-29 23:15:09 +01:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
|
2004-09-27 06:01:18 +02:00
|
|
|
DIST = luasocket-2.0-beta3
|
2000-12-29 23:15:09 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
LUA = \
|
2003-06-30 20:53:10 +02:00
|
|
|
ftp.lua \
|
|
|
|
http.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
ltn12.lua \
|
|
|
|
mime.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
smtp.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
socket.lua \
|
2004-11-28 09:32:36 +01:00
|
|
|
compat-5.1.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
tp.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
url.lua
|
2003-03-29 00:29:45 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
TESTS = \
|
2003-06-30 20:53:10 +02:00
|
|
|
testclnt.lua \
|
|
|
|
testsrvr.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
testsupport.lua
|
2003-03-29 00:29:45 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
EXAMPLES = \
|
2004-06-17 23:46:22 +02:00
|
|
|
check-memory.lua \
|
|
|
|
b64.lua \
|
|
|
|
cddb.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
daytimeclnt.lua \
|
|
|
|
echoclnt.lua \
|
|
|
|
echosrvr.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
eol.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
listener.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
qp.lua \
|
2004-07-03 01:31:32 +02:00
|
|
|
lpr.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
talker.lua \
|
|
|
|
tinyirc.lua
|
2003-06-09 20:23:40 +02:00
|
|
|
|
|
|
|
ETC = \
|
2003-06-30 20:53:10 +02:00
|
|
|
check-links.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
dict.lua \
|
2003-06-30 20:53:10 +02:00
|
|
|
get.lua \
|
2004-07-03 01:31:32 +02:00
|
|
|
unix.c \
|
|
|
|
unix.h \
|
|
|
|
lp.lua \
|
2004-06-17 23:46:22 +02:00
|
|
|
tftp.lua
|
2003-06-09 20:23:40 +02:00
|
|
|
|
2004-06-17 23:46:22 +02:00
|
|
|
CORE = \
|
2003-06-09 20:23:40 +02:00
|
|
|
auxiliar.c \
|
|
|
|
auxiliar.h \
|
|
|
|
buffer.c \
|
|
|
|
buffer.h \
|
2004-06-17 23:46:22 +02:00
|
|
|
except.c \
|
|
|
|
except.h \
|
2003-06-09 20:23:40 +02:00
|
|
|
inet.c \
|
|
|
|
inet.h \
|
|
|
|
io.c \
|
|
|
|
io.h \
|
|
|
|
luasocket.c \
|
|
|
|
luasocket.h \
|
2004-06-17 23:46:22 +02:00
|
|
|
mime.c \
|
|
|
|
mime.h \
|
|
|
|
options.c \
|
|
|
|
options.h \
|
2003-06-09 20:23:40 +02:00
|
|
|
select.c \
|
|
|
|
select.h \
|
|
|
|
socket.h \
|
|
|
|
tcp.c \
|
|
|
|
tcp.h \
|
|
|
|
timeout.c \
|
|
|
|
timeout.h \
|
|
|
|
udp.c \
|
|
|
|
udp.h \
|
|
|
|
usocket.c \
|
|
|
|
usocket.h \
|
|
|
|
wsocket.c \
|
2004-11-28 09:32:36 +01:00
|
|
|
wsocket.h \
|
|
|
|
compat-5.1.c \
|
|
|
|
compat-5.1.h
|
2000-12-29 23:15:09 +01:00
|
|
|
|
2004-06-17 23:46:22 +02:00
|
|
|
MAKE = \
|
|
|
|
makefile.Darwin \
|
|
|
|
makefile.Linux \
|
|
|
|
luasocket.sln \
|
|
|
|
luasocket.vcproj \
|
|
|
|
mime.vcproj
|
|
|
|
|
|
|
|
MANUAL = \
|
|
|
|
manual/dns.html \
|
|
|
|
manual/ftp.html \
|
|
|
|
manual/home.html \
|
|
|
|
manual/http.html \
|
|
|
|
manual/introduction.html \
|
|
|
|
manual/ltn12.html \
|
|
|
|
manual/luasocket.png \
|
|
|
|
manual/mime.html \
|
2004-11-28 09:32:36 +01:00
|
|
|
manual/instalation.html \
|
2004-06-17 23:46:22 +02:00
|
|
|
manual/reference.css \
|
|
|
|
manual/reference.html \
|
|
|
|
manual/smtp.html \
|
|
|
|
manual/socket.html \
|
|
|
|
manual/tcp.html \
|
|
|
|
manual/udp.html \
|
|
|
|
manual/url.html
|
|
|
|
|
2000-12-29 23:15:09 +01:00
|
|
|
dist:
|
|
|
|
mkdir -p $(DIST)/examples
|
2003-03-29 00:29:45 +01:00
|
|
|
mkdir -p $(DIST)/tests
|
2003-06-09 20:23:40 +02:00
|
|
|
mkdir -p $(DIST)/etc
|
2004-06-17 23:46:22 +02:00
|
|
|
mkdir -p $(DIST)/lua
|
|
|
|
mkdir -p $(DIST)/manual
|
2004-07-03 01:31:32 +02:00
|
|
|
cp -vf TODO $(DIST)
|
2004-06-17 23:46:22 +02:00
|
|
|
cp -vf $(CORE) $(DIST)
|
2000-12-29 23:15:09 +01:00
|
|
|
cp -vf README $(DIST)
|
2003-06-30 20:53:10 +02:00
|
|
|
cp -vf NEW $(DIST)
|
2004-06-17 23:46:22 +02:00
|
|
|
cp -vf LICENSE $(DIST)
|
2004-06-18 23:41:44 +02:00
|
|
|
cp -vf $(MAKE) $(DIST)
|
|
|
|
cp -vf make.README $(DIST)/INSTALL
|
2004-06-17 23:46:22 +02:00
|
|
|
cp -vf $(LUA) $(DIST)/lua
|
|
|
|
cp -vf lua.README $(DIST)/lua/README
|
2003-03-29 00:29:45 +01:00
|
|
|
cp -vf $(EXAMPLES) $(DIST)/examples
|
2003-06-30 20:53:10 +02:00
|
|
|
cp -vf examples.README $(DIST)/examples/README
|
2003-03-29 00:29:45 +01:00
|
|
|
cp -vf $(TESTS) $(DIST)/tests
|
2003-06-30 20:53:10 +02:00
|
|
|
cp -vf tests.README $(DIST)/tests/README
|
2003-06-09 20:23:40 +02:00
|
|
|
cp -vf $(ETC) $(DIST)/etc
|
2003-06-30 20:53:10 +02:00
|
|
|
cp -vf etc.README $(DIST)/etc/README
|
2004-06-17 23:46:22 +02:00
|
|
|
cp -vf $(MANUAL) $(DIST)/manual
|
2000-12-29 23:15:09 +01:00
|
|
|
tar -zcvf $(DIST).tar.gz $(DIST)
|
|
|
|
zip -r $(DIST).zip $(DIST)
|
2003-03-29 00:29:45 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
\rm -rf $(DIST) $(DIST).tar.gz $(DIST).zip
|