2005-08-12 07:56:32 +02:00
|
|
|
#------
|
|
|
|
# Load configuration
|
|
|
|
#
|
|
|
|
include config
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Hopefully no need to change anything below this line
|
|
|
|
#
|
2005-11-22 09:33:29 +01:00
|
|
|
INSTALL_SOCKET_SHARE=$(INSTALL_TOP_SHARE)/socket
|
2005-08-23 07:53:14 +02:00
|
|
|
INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
|
2005-11-22 09:33:29 +01:00
|
|
|
INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
|
2005-08-23 07:53:14 +02:00
|
|
|
INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
|
2005-08-12 07:56:32 +02:00
|
|
|
|
2011-09-27 21:54:51 +02:00
|
|
|
all clean all-unix:
|
2005-08-12 07:56:32 +02:00
|
|
|
cd src; $(MAKE) $@
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Files to install
|
|
|
|
#
|
2005-11-22 09:33:29 +01:00
|
|
|
TO_SOCKET_SHARE:= \
|
2005-08-12 07:56:32 +02:00
|
|
|
http.lua \
|
|
|
|
url.lua \
|
|
|
|
tp.lua \
|
|
|
|
ftp.lua \
|
|
|
|
smtp.lua
|
|
|
|
|
2005-11-22 09:33:29 +01:00
|
|
|
TO_TOP_SHARE:= \
|
|
|
|
ltn12.lua \
|
|
|
|
socket.lua \
|
2005-08-12 07:56:32 +02:00
|
|
|
mime.lua
|
|
|
|
|
2005-11-22 09:33:29 +01:00
|
|
|
TO_MIME_SHARE:=
|
|
|
|
|
2005-08-12 07:56:32 +02:00
|
|
|
#------
|
|
|
|
# Install LuaSocket according to recommendation
|
|
|
|
#
|
|
|
|
install: all
|
2005-11-22 09:33:29 +01:00
|
|
|
cd src; mkdir -p $(INSTALL_TOP_SHARE)
|
|
|
|
cd src; $(INSTALL_DATA) $(TO_TOP_SHARE) $(INSTALL_TOP_SHARE)
|
|
|
|
cd src; mkdir -p $(INSTALL_SOCKET_SHARE)
|
|
|
|
cd src; $(INSTALL_DATA) $(TO_SOCKET_SHARE) $(INSTALL_SOCKET_SHARE)
|
2005-08-23 07:53:14 +02:00
|
|
|
cd src; mkdir -p $(INSTALL_SOCKET_LIB)
|
|
|
|
cd src; $(INSTALL_EXEC) $(SOCKET_SO) $(INSTALL_SOCKET_LIB)/core.$(EXT)
|
2005-11-22 09:33:29 +01:00
|
|
|
#cd src; mkdir -p $(INSTALL_MIME_SHARE)
|
|
|
|
#cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
|
2005-08-23 07:53:14 +02:00
|
|
|
cd src; mkdir -p $(INSTALL_MIME_LIB)
|
|
|
|
cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
|
2005-08-12 07:56:32 +02:00
|
|
|
|
2011-09-27 21:54:51 +02:00
|
|
|
install-unix: install all-unix
|
|
|
|
cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_SOCKET_LIB)/$(UNIX_SO)
|
|
|
|
|
2005-08-12 07:56:32 +02:00
|
|
|
#------
|
|
|
|
# End of makefile
|
|
|
|
#
|