luasec/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2015-10-15 12:39:09 +02:00
# Inform the location to install the modules
2014-04-21 18:20:17 +02:00
LUAPATH ?= /usr/share/lua/5.1
LUACPATH ?= /usr/lib/lua/5.1
2012-09-02 16:15:49 +02:00
2013-03-30 13:21:40 +01:00
# Compile with build-in LuaSocket's help files.
# Comment this lines if you will link with non-internal LuaSocket's help files
# and edit INCDIR and LIBDIR properly.
2014-04-21 18:20:17 +02:00
EXTRA = luasocket
DEFS = -DWITH_LUASOCKET
2013-03-30 13:21:40 +01:00
# Edit the lines below to inform new path, if necessary.
# Path below points to internal LuaSocket's help files.
2014-04-21 18:20:17 +02:00
INC_PATH ?= -I/usr/include
LIB_PATH ?= -L/usr/lib
INCDIR = -I. $(INC_PATH)
LIBDIR = -L./luasocket $(LIB_PATH)
2012-09-02 16:15:49 +02:00
# For Mac OS X: set the system version
MACOSX_VERSION=10.4
#----------------------
# Do not edit this part
.PHONY: all clean install none linux bsd macosx
all: none
none:
@echo "Usage: $(MAKE) <platform>"
@echo " * linux"
@echo " * bsd"
@echo " * macosx"
install:
2013-03-30 13:21:40 +01:00
@cd src && $(MAKE) LUACPATH="$(LUACPATH)" LUAPATH="$(LUAPATH)" install
2012-09-02 16:15:49 +02:00
linux:
@echo "---------------------"
@echo "** Build for Linux **"
@echo "---------------------"
2013-03-30 13:21:40 +01:00
@cd src && $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)" EXTRA="$(EXTRA)" $@
2012-09-02 16:15:49 +02:00
bsd:
@echo "-------------------"
@echo "** Build for BSD **"
@echo "-------------------"
2013-03-30 13:21:40 +01:00
@cd src && $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)" EXTRA="$(EXTRA)" $@
2012-09-02 16:15:49 +02:00
macosx:
@echo "------------------------------"
@echo "** Build for Mac OS X $(MACOSX_VERSION) **"
@echo "------------------------------"
2013-03-30 13:21:40 +01:00
@cd src && $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" MACVER="$(MACOSX_VERSION)" DEFS="$(DEFS)" EXTRA="$(EXTRA)" $@
2012-09-02 16:15:49 +02:00
clean:
2013-03-30 13:21:40 +01:00
@cd src && $(MAKE) clean