mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
Upgrading for LuaBinaries.
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,14 +1,14 @@
|
|||||||
# $Id: Makefile,v 1.16 2005/05/20 18:32:51 uid20006 Exp $
|
# $Id: Makefile,v 1.17 2005/05/25 12:55:32 tomas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
|
|
||||||
include ./config
|
include ./config
|
||||||
|
|
||||||
V= 1.1
|
V= 1.1.0
|
||||||
DIST_DIR= luafilesystem-$V
|
DIST_DIR= luafilesystem-$V
|
||||||
TAR_FILE= $(DIST_DIR).tar.gz
|
TAR_FILE= $(DIST_DIR).tar.gz
|
||||||
ZIP_FILE= $(DIST_DIR).zip
|
ZIP_FILE= $(DIST_DIR).zip
|
||||||
LIBNAME= lib$T.$V$(LIB_EXT)
|
LIBNAME= lib$T.$V.so
|
||||||
|
|
||||||
COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
|
COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
|
||||||
SRCS= src/$T.c
|
SRCS= src/$T.c
|
||||||
@@ -18,7 +18,7 @@ OBJS= src/$T.o $(COMPAT_O)
|
|||||||
lib: src/$(LIBNAME)
|
lib: src/$(LIBNAME)
|
||||||
|
|
||||||
src/$(LIBNAME): $(OBJS)
|
src/$(LIBNAME): $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) $(LIBS)
|
$(CC) $(CFLAGS) $(LIBS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
|
||||||
|
|
||||||
$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
|
$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
|
||||||
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
||||||
|
|||||||
8
config
8
config
@@ -1,15 +1,11 @@
|
|||||||
# Installation directories
|
# Installation directories
|
||||||
# System's libraries directory (where binary libraries are installed)
|
# System's libraries directory (where binary libraries are installed)
|
||||||
LUA_LIBDIR= /usr/local/lib/lua/5.0
|
LUA_LIBDIR= /usr/local/lib/lua/5.0
|
||||||
# System's lua directory (where Lua libraries are installed)
|
|
||||||
LUA_DIR= /usr/local/share/lua/5.0
|
|
||||||
# Lua includes directory
|
# Lua includes directory
|
||||||
LUA_INC= /usr/local/include/lua5
|
LUA_INC= /usr/local/include/lua5
|
||||||
|
|
||||||
# OS dependent
|
# OS dependent
|
||||||
#LIB_EXT= .dylib
|
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
||||||
LIB_EXT= .so
|
|
||||||
#LIB_OPTION= -dynamiclib #for MacOS X
|
|
||||||
LIB_OPTION= -shared #for Linux
|
LIB_OPTION= -shared #for Linux
|
||||||
|
|
||||||
COMPAT_DIR= ../compat/src
|
COMPAT_DIR= ../compat/src
|
||||||
@@ -17,7 +13,7 @@ COMPAT_DIR= ../compat/src
|
|||||||
# Compilation directives
|
# Compilation directives
|
||||||
# On FreeBSD systems, the following line should be commented
|
# On FreeBSD systems, the following line should be commented
|
||||||
DLLIB= -ldl
|
DLLIB= -ldl
|
||||||
LUA_LIBS= -llua50 -lm
|
#LUA_LIBS= -llua50 -lm
|
||||||
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
|
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
|
||||||
INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
|
INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
|
||||||
LIBS= $(LUA_LIBS) $(DLLIB)
|
LIBS= $(LUA_LIBS) $(DLLIB)
|
||||||
|
|||||||
Reference in New Issue
Block a user