mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
22 lines
638 B
Plaintext
22 lines
638 B
Plaintext
# Installation directories
|
|
# System's libraries directory (where Lua libraries are installed)
|
|
LIB_DIR= /usr/local/lib
|
|
LUA_DIR= /usr/local/lua
|
|
|
|
# OS dependent
|
|
LIB_EXT= .dylib
|
|
#LIB_EXT= .so
|
|
LIB_OPTION= -dynamiclib #for MacOS X
|
|
#LIB_OPTION= -shared #for Linux
|
|
|
|
# Compilation directives
|
|
# pre-compile and include mod2.lua into mod_lua.c
|
|
# 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
|
|
LIBS= -L$(LIB_DIR) -llua -llualib -lm $(DLLIB)
|
|
CFLAGS= $(WARN) $(INCS)
|
|
CC= gcc
|
|
|