-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig
executable file
·30 lines (26 loc) · 1020 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Installation directories
# System's libraries directory (where binary libraries are installed)
LUA_LIBDIR= /usr/local/lib/lua/5.0
# Lua includes directory
LUA_INC= /usr/local/include
# OS dependent
LIB_OPTION= -shared #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
# Lua version number (first and second digits of target version)
LUA_VERSION_NUM= 500
LIBNAME= $T.so.$V
COMPAT_DIR= ../compat/src
##########
# LuaCrypto engine (openssl or gcrypt - not used yet)
#LUACRYPTO_ENGINE= gcrypt
### OpenSSL
LUACRYPTO_LIBS= -L/usr/local/openssl/lib -lcrypto -lssl
LUACRYPTO_INCS= -I/usr/local/openssl/include -DCRYPTO_OPENSSL=1
### gcrypt
#LUACRYPTO_LIBS= $(shell libgcrypt-config --libs)
#LUACRYPTO_INCS= $(shell libgcrypt-config --cflags) -DCRYPTO_GCRYPT=1
# Compilation directives
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
CFLAGS= $(WARN) $(LUACRYPTO_INCS) $(INCS)
CC= gcc