mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 11:03: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
|
||||
|
||||
@@ -11,7 +11,7 @@ ZIP_FILE= $(DIST_DIR).zip
|
||||
LIBNAME= lib$T.$V$(LIB_EXT)
|
||||
|
||||
SRCS= $T.c
|
||||
OBJS= $T.o
|
||||
OBJS= $T.o compat-5.1.o
|
||||
|
||||
|
||||
lib: $(LIBNAME)
|
||||
@@ -19,6 +19,8 @@ lib: $(LIBNAME)
|
||||
$(LIBNAME): $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS)
|
||||
|
||||
compat-5.1.o: compat-5.1.c
|
||||
|
||||
install: $(LIBNAME)
|
||||
mkdir -p $(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
|
||||
DLLIB= -ldl
|
||||
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)
|
||||
CFLAGS= $(WARN) $(INCS)
|
||||
CC= gcc
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
** lfs.lock (fh, mode)
|
||||
** 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>
|
||||
@@ -32,9 +32,9 @@
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
#include <lualib.h>
|
||||
#include <compat-5.1.h>
|
||||
|
||||
#include "lfs.h"
|
||||
#include "compat-5.1.h"
|
||||
|
||||
/* Define 'strerror' for systems that do not implement it */
|
||||
#ifdef NO_STRERROR
|
||||
|
||||
Reference in New Issue
Block a user