# Lua binary LUA := lua # Lua version number (first and second digits of target version) LUA_VERSION := $(shell $(LUA) -e 'print(_VERSION:match("%S+%s+(%S+)"))') # Lua library (set LUA_LIB explicitly, if required) LUA_LIB = # -llua$(LUA_VERSION) # Lua library directory LUA_LIBDIR = /usr/lib # Lua include directory LUA_INCDIR = /usr/include/lua$(LUA_VERSION) # Installation prefix INST_PREFIX = /usr # Lua binary directory INST_BINDIR = /usr/bin # Lua binary module directory INST_LIBDIR = /usr/lib/lua/$(LUA_VERSION) # Lua source module directory INST_LUADIR = /usr/share/lua/$(LUA_VERSION) # OpenLDAP library (an optional directory can be specified with -L) LDAP_LIB = -lldap # System's libraries directory (where binary libraries are installed) LDAP_LIBDIR = /usr/lib # OpenLDAP includes directory LDAP_INCDIR = /usr/include LBER_LIB = -llber LBER_LIBDIR = /usr/lib LBER_INCDIR = /usr/include # OS dependent LIBFLAG = -shared # for Linux #LIBFLAG = -bundle -undefined dynamic_lookup # for MacOS X # Compilation parameters CC= gcc INSTALL= install MACOSX_DEPLOYMENT_TARGET="10.3" export MACOSX_DEPLOYMENT_TARGET