mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
#------
|
|
# Load configuration
|
|
#
|
|
include config
|
|
|
|
#------
|
|
# Hopefully no need to change anything below this line
|
|
#
|
|
INSTALL_SOCKET_SHARE=$(INSTALL_TOP_SHARE)/socket
|
|
INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
|
|
INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
|
|
INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
|
|
|
|
all clean all-unix:
|
|
cd src; $(MAKE) $@
|
|
|
|
#------
|
|
# Files to install
|
|
#
|
|
TO_SOCKET_SHARE:= \
|
|
http.lua \
|
|
url.lua \
|
|
tp.lua \
|
|
ftp.lua \
|
|
smtp.lua
|
|
|
|
TO_TOP_SHARE:= \
|
|
ltn12.lua \
|
|
socket.lua \
|
|
mime.lua
|
|
|
|
TO_MIME_SHARE:=
|
|
|
|
#------
|
|
# Install LuaSocket according to recommendation
|
|
#
|
|
install: all
|
|
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)
|
|
cd src; mkdir -p $(INSTALL_SOCKET_LIB)
|
|
cd src; $(INSTALL_EXEC) $(SOCKET_SO) $(INSTALL_SOCKET_LIB)/core.$(EXT)
|
|
#cd src; mkdir -p $(INSTALL_MIME_SHARE)
|
|
#cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
|
|
cd src; mkdir -p $(INSTALL_MIME_LIB)
|
|
cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
|
|
|
|
install-unix: install all-unix
|
|
cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_SOCKET_LIB)/$(UNIX_SO)
|
|
cd src; $(INSTALL_EXEC) $(SERIAL_SO) $(INSTALL_SOCKET_LIB)/$(SERIAL_SO)
|
|
|
|
#------
|
|
# End of makefile
|
|
#
|