mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Pequena melhoria para achar os arquivos compat-5.1.
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.5 2004/10/15 10:04:15 tomas Exp $
|
# $Id: Makefile,v 1.6 2004/10/15 10:07:53 tomas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ 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
|
compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
mkdir -p $(LIB_DIR)
|
mkdir -p $(LIB_DIR)
|
||||||
|
|||||||
4
config
4
config
@@ -10,11 +10,13 @@ LIB_EXT= .dylib
|
|||||||
LIB_OPTION= -dynamiclib #for MacOS X
|
LIB_OPTION= -dynamiclib #for MacOS X
|
||||||
#LIB_OPTION= -shared #for Linux
|
#LIB_OPTION= -shared #for Linux
|
||||||
|
|
||||||
|
COMPAT_DIR= ../compat
|
||||||
|
|
||||||
# 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
|
||||||
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 -I../compat
|
INCS= -I/usr/local/include/lua5 -I$(COMPAT_DIR)
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user