diff options
| author | tomas <tomas> | 2004-10-15 10:04:15 +0000 |
|---|---|---|
| committer | tomas <tomas> | 2004-10-15 10:04:15 +0000 |
| commit | 39fba7df43aa2bead39f6ffad6ef4675ad4576c3 (patch) | |
| tree | dbd7151908df870403a42c994705827849b0aa6c | |
| parent | a6c8ca71233e9b771b91789e3059b9d22b26c8e9 (diff) | |
| download | luafilesystem-39fba7df43aa2bead39f6ffad6ef4675ad4576c3.tar.gz luafilesystem-39fba7df43aa2bead39f6ffad6ef4675ad4576c3.tar.bz2 luafilesystem-39fba7df43aa2bead39f6ffad6ef4675ad4576c3.zip | |
Atualizando o esquema de compilacao para o uso da compat-5.1.
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | config | 2 | ||||
| -rw-r--r-- | src/lfs.c | 4 |
3 files changed, 7 insertions, 5 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | # $Id: Makefile,v 1.4 2004/09/29 17:46:24 tomas Exp $ | 1 | # $Id: Makefile,v 1.5 2004/10/15 10:04:15 tomas Exp $ |
| 2 | 2 | ||
| 3 | T= lfs | 3 | T= lfs |
| 4 | 4 | ||
| @@ -11,7 +11,7 @@ ZIP_FILE= $(DIST_DIR).zip | |||
| 11 | LIBNAME= lib$T.$V$(LIB_EXT) | 11 | LIBNAME= lib$T.$V$(LIB_EXT) |
| 12 | 12 | ||
| 13 | SRCS= $T.c | 13 | SRCS= $T.c |
| 14 | OBJS= $T.o | 14 | OBJS= $T.o compat-5.1.o |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | lib: $(LIBNAME) | 17 | lib: $(LIBNAME) |
| @@ -19,6 +19,8 @@ lib: $(LIBNAME) | |||
| 19 | $(LIBNAME): $(OBJS) | 19 | $(LIBNAME): $(OBJS) |
| 20 | $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS) | 20 | $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS) |
| 21 | 21 | ||
| 22 | compat-5.1.o: compat-5.1.c | ||
| 23 | |||
| 22 | install: $(LIBNAME) | 24 | install: $(LIBNAME) |
| 23 | mkdir -p $(LIB_DIR) | 25 | mkdir -p $(LIB_DIR) |
| 24 | cp $(LIBNAME) $(LIB_DIR) | 26 | cp $(LIBNAME) $(LIB_DIR) |
| @@ -14,7 +14,7 @@ LIB_OPTION= -dynamiclib #for MacOS X | |||
| 14 | # On FreeBSD systems, the following line should be commented | 14 | # On FreeBSD systems, the following line should be commented |
| 15 | DLLIB= -ldl | 15 | DLLIB= -ldl |
| 16 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings | 16 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings |
| 17 | INCS= -I/usr/local/include/lua5 | 17 | INCS= -I/usr/local/include/lua5 -I../compat |
| 18 | LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB) | 18 | LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB) |
| 19 | CFLAGS= $(WARN) $(INCS) | 19 | CFLAGS= $(WARN) $(INCS) |
| 20 | CC= gcc | 20 | CC= gcc |
| @@ -9,7 +9,7 @@ | |||
| 9 | ** lfs.lock (fh, mode) | 9 | ** lfs.lock (fh, mode) |
| 10 | ** lfs.unlock (fh) | 10 | ** lfs.unlock (fh) |
| 11 | ** | 11 | ** |
| 12 | ** $Id: lfs.c,v 1.2 2004/10/14 11:13:29 tomas Exp $ | 12 | ** $Id: lfs.c,v 1.3 2004/10/15 10:04:15 tomas Exp $ |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | #include <errno.h> | 15 | #include <errno.h> |
| @@ -32,9 +32,9 @@ | |||
| 32 | #include <lua.h> | 32 | #include <lua.h> |
| 33 | #include <lauxlib.h> | 33 | #include <lauxlib.h> |
| 34 | #include <lualib.h> | 34 | #include <lualib.h> |
| 35 | #include <compat-5.1.h> | ||
| 35 | 36 | ||
| 36 | #include "lfs.h" | 37 | #include "lfs.h" |
| 37 | #include "compat-5.1.h" | ||
| 38 | 38 | ||
| 39 | /* Define 'strerror' for systems that do not implement it */ | 39 | /* Define 'strerror' for systems that do not implement it */ |
| 40 | #ifdef NO_STRERROR | 40 | #ifdef NO_STRERROR |
