mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Uniformizacao de nomes de variaveis entre as bibliotecas do Kepler.
Melhorias para reutilizacao do Makefile.
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.9 2004/11/10 14:44:01 tuler Exp $
|
# $Id: Makefile,v 1.10 2005/01/18 09:36:11 tomas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
|
|
||||||
@@ -23,9 +23,9 @@ compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
|
|||||||
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
mkdir -p $(LIB_DIR)
|
mkdir -p $(LUA_LIBDIR)
|
||||||
cp $(LIBNAME) $(LIB_DIR)
|
cp $(LIBNAME) $(LUA_LIBDIR)
|
||||||
ln -f -s $(LIB_DIR)/$(LIBNAME) $(LIB_DIR)/$T$(LIB_EXT)
|
ln -f -s $(LUA_LIBDIR)/$(LIBNAME) $(LUA_LIBDIR)/$T$(LIB_EXT)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $L $(LIBNAME) $(OBJS)
|
rm -f $L $(LIBNAME) $(OBJS)
|
||||||
|
|||||||
10
config
10
config
@@ -1,8 +1,10 @@
|
|||||||
# Installation directories
|
# Installation directories
|
||||||
# System's libraries directory (where binary libraries are installed)
|
# System's libraries directory (where binary libraries are installed)
|
||||||
LIB_DIR= /usr/local/lib
|
LUA_LIBDIR= /usr/local/lib/lua/5.0
|
||||||
# System's lua directory (where Lua libraries are installed)
|
# System's lua directory (where Lua libraries are installed)
|
||||||
LUA_DIR= /usr/local/lua
|
LUA_DIR= /usr/local/share/lua/5.0
|
||||||
|
# Lua includes directory
|
||||||
|
LUA_INC= /usr/local/include/lua5
|
||||||
|
|
||||||
# OS dependent
|
# OS dependent
|
||||||
LIB_EXT= .dylib
|
LIB_EXT= .dylib
|
||||||
@@ -16,8 +18,8 @@ COMPAT_DIR= .
|
|||||||
# 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_DIR)
|
INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
|
||||||
LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB)
|
LIBS= -L$(LUA_LIBDIR) -llua -llualib -lm $(DLLIB)
|
||||||
CFLAGS= $(WARN) $(INCS)
|
CFLAGS= $(WARN) $(INCS)
|
||||||
CC= gcc
|
CC= gcc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user