mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 13:13:07 +00:00
Atualizando o esquema de compilacao para o uso da compat-5.1.
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.4 2004/09/29 17:46:24 tomas Exp $
|
# $Id: Makefile,v 1.5 2004/10/15 10:04:15 tomas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ ZIP_FILE= $(DIST_DIR).zip
|
|||||||
LIBNAME= lib$T.$V$(LIB_EXT)
|
LIBNAME= lib$T.$V$(LIB_EXT)
|
||||||
|
|
||||||
SRCS= $T.c
|
SRCS= $T.c
|
||||||
OBJS= $T.o
|
OBJS= $T.o compat-5.1.o
|
||||||
|
|
||||||
|
|
||||||
lib: $(LIBNAME)
|
lib: $(LIBNAME)
|
||||||
@@ -19,6 +19,8 @@ lib: $(LIBNAME)
|
|||||||
$(LIBNAME): $(OBJS)
|
$(LIBNAME): $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS)
|
$(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS)
|
||||||
|
|
||||||
|
compat-5.1.o: compat-5.1.c
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
mkdir -p $(LIB_DIR)
|
mkdir -p $(LIB_DIR)
|
||||||
cp $(LIBNAME) $(LIB_DIR)
|
cp $(LIBNAME) $(LIB_DIR)
|
||||||
|
|||||||
2
config
2
config
@@ -14,7 +14,7 @@ LIB_OPTION= -dynamiclib #for MacOS X
|
|||||||
# On FreeBSD systems, the following line should be commented
|
# On FreeBSD systems, the following line should be commented
|
||||||
DLLIB= -ldl
|
DLLIB= -ldl
|
||||||
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/usr/local/include/lua5
|
INCS= -I/usr/local/include/lua5 -I../compat
|
||||||
LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB)
|
LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB)
|
||||||
CFLAGS= $(WARN) $(INCS)
|
CFLAGS= $(WARN) $(INCS)
|
||||||
CC= gcc
|
CC= gcc
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
** lfs.lock (fh, mode)
|
** lfs.lock (fh, mode)
|
||||||
** lfs.unlock (fh)
|
** lfs.unlock (fh)
|
||||||
**
|
**
|
||||||
** $Id: lfs.c,v 1.2 2004/10/14 11:13:29 tomas Exp $
|
** $Id: lfs.c,v 1.3 2004/10/15 10:04:15 tomas Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
|
#include <compat-5.1.h>
|
||||||
|
|
||||||
#include "lfs.h"
|
#include "lfs.h"
|
||||||
#include "compat-5.1.h"
|
|
||||||
|
|
||||||
/* Define 'strerror' for systems that do not implement it */
|
/* Define 'strerror' for systems that do not implement it */
|
||||||
#ifdef NO_STRERROR
|
#ifdef NO_STRERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user