From 39fba7df43aa2bead39f6ffad6ef4675ad4576c3 Mon Sep 17 00:00:00 2001 From: tomas Date: Fri, 15 Oct 2004 10:04:15 +0000 Subject: Atualizando o esquema de compilacao para o uso da compat-5.1. --- Makefile | 6 ++++-- config | 2 +- src/lfs.c | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 37703e7..e103146 100644 --- a/Makefile +++ b/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) diff --git a/config b/config index 38eb0ed..70b0043 100644 --- a/config +++ b/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 diff --git a/src/lfs.c b/src/lfs.c index 727399d..0b947d0 100644 --- a/src/lfs.c +++ b/src/lfs.c @@ -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 @@ -32,9 +32,9 @@ #include #include #include +#include #include "lfs.h" -#include "compat-5.1.h" /* Define 'strerror' for systems that do not implement it */ #ifdef NO_STRERROR -- cgit v1.2.3-55-g6feb