mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
27 lines
758 B
Plaintext
27 lines
758 B
Plaintext
# Installation directories
|
|
# System's libraries directory (where binary libraries are installed)
|
|
LUA_LIBDIR= /usr/local/lib/lua/5.0
|
|
# System's lua directory (where Lua libraries are installed)
|
|
LUA_DIR= /usr/local/share/lua/5.0
|
|
# Lua includes directory
|
|
LUA_INC= /usr/local/include/lua5
|
|
|
|
# OS dependent
|
|
#LIB_EXT= .dylib
|
|
LIB_EXT= .so
|
|
#LIB_OPTION= -dynamiclib #for MacOS X
|
|
LIB_OPTION= -shared #for Linux
|
|
|
|
COMPAT_DIR= .
|
|
|
|
# Compilation directives
|
|
# On FreeBSD systems, the following line should be commented
|
|
DLLIB= -ldl
|
|
LUA_LIBS= -llua -llualib -lm
|
|
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
|
|
INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
|
|
LIBS= $(LUA_LIBS) $(DLLIB)
|
|
CFLAGS= $(WARN) $(INCS)
|
|
CC= gcc
|
|
|