summaryrefslogtreecommitdiff
path: root/Build/source/libs/luafilesystem/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/luafilesystem/Makefile')
-rw-r--r--Build/source/libs/luafilesystem/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/libs/luafilesystem/Makefile b/Build/source/libs/luafilesystem/Makefile
new file mode 100644
index 00000000000..35e7b3e9d54
--- /dev/null
+++ b/Build/source/libs/luafilesystem/Makefile
@@ -0,0 +1,28 @@
+# $Id: Makefile,v 1.26 2005/06/27 17:06:01 tomas Exp $
+
+T= lfs
+V= 1.2
+CONFIG= ./config
+
+include $(CONFIG)
+
+COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
+SRCS= src/$T.c
+OBJS= src/$T.o $(COMPAT_O)
+
+
+lib: src/$(LIBNAME)
+
+src/$(LIBNAME): $(OBJS)
+ export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
+
+$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
+ $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
+
+install: src/$(LIBNAME)
+ mkdir -p $(LUA_LIBDIR)
+ cp src/$(LIBNAME) $(LUA_LIBDIR)
+ cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
+
+clean:
+ rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)