2008-05-28 15:28:13 +00:00
|
|
|
include ../../build/config.mk
|
2008-06-10 22:57:56 +00:00
|
|
|
include ../../build/gccconfig.mk
|
2008-05-28 15:28:13 +00:00
|
|
|
|
2008-09-25 09:57:32 +00:00
|
|
|
LUAPOSIX_VERSION = 5.1.4
|
2008-09-19 14:44:04 +00:00
|
|
|
LUAPOSIX_SITE = http://dev.luci.freifunk-halle.net/sources/
|
2008-05-28 15:28:13 +00:00
|
|
|
LUAPOSIX_DIR = luaposix-$(LUAPOSIX_VERSION)
|
2008-09-25 09:57:32 +00:00
|
|
|
LUAPOSIX_FILE = lua-posix_5.1.4.orig.tar.gz
|
2008-05-28 15:28:13 +00:00
|
|
|
LUAPOSIX_URL = $(LUAPOSIX_SITE)/$(LUAPOSIX_FILE)
|
|
|
|
LUAPOSIX_PATCHDIR = patches
|
|
|
|
|
|
|
|
all: compile
|
|
|
|
|
2008-07-24 13:55:11 +00:00
|
|
|
include ../../build/module.mk
|
|
|
|
|
2008-05-28 15:28:13 +00:00
|
|
|
$(LUAPOSIX_FILE):
|
|
|
|
wget -O $@ $(LUAPOSIX_URL) || rm -f $@
|
|
|
|
|
|
|
|
$(LUAPOSIX_DIR)/.prepared: $(LUAPOSIX_FILE)
|
|
|
|
rm -rf $(LUAPOSIX_DIR)
|
|
|
|
tar xvfz $(LUAPOSIX_FILE)
|
|
|
|
touch $@
|
|
|
|
|
2008-09-25 09:57:32 +00:00
|
|
|
compile: $(LUAPOSIX_DIR)/.prepared
|
2008-06-10 22:57:56 +00:00
|
|
|
$(MAKE) -C $(LUAPOSIX_DIR) CC=$(CC) CFLAGS="$(CFLAGS) $(LUA_CFLAGS)" LDFLAGS="$(LDFLAGS) $(LUA_SHLIBS)" OS="$(OS)"
|
2008-06-14 14:12:12 +00:00
|
|
|
mkdir -p dist$(LUA_LIBRARYDIR)
|
|
|
|
cp $(LUAPOSIX_DIR)/posix.so dist$(LUA_LIBRARYDIR)
|
2008-05-28 15:28:13 +00:00
|
|
|
|
2008-06-02 15:34:33 +00:00
|
|
|
luasource:
|
2008-07-19 10:27:23 +00:00
|
|
|
luastrip:
|
|
|
|
luacompile:
|
2008-05-28 15:28:13 +00:00
|
|
|
compile-all: compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(LUAPOSIX_DIR) $(LUAPOSIX_FILE)
|
|
|
|
rm -f $(LUAPOSIX_PATCHDIR)/series
|