2016-02-14 17:30:14 +01:00
|
|
|
ifeq (${USE_CONTRIB_OPENSSL},1)
|
|
|
|
OPENSSL_LIBS=../contrib/${OPENSSL_VERSION}/libssl.a ../contrib/${OPENSSL_VERSION}/libcrypto.a -ldl
|
|
|
|
OPENSSL_CFLAGS=../contrib/${OPENSSL_VERSION}/include/
|
2014-08-20 19:55:47 +02:00
|
|
|
else
|
2016-03-12 22:26:06 +01:00
|
|
|
OPENSSL_LDFLAGS=
|
2015-02-08 11:42:01 +01:00
|
|
|
OPENSSL_CFLAGS=
|
2016-03-12 22:26:06 +01:00
|
|
|
OPENSSL_LIBS=-lssl -lcrypto -ldl
|
2014-08-20 19:55:47 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-08 11:42:01 +01:00
|
|
|
ifeq ($(USE_CONTRIB_GNUTLS),1)
|
|
|
|
GNUTLS_CFLAGS=-I../contrib/gnutls-${GNUTLS_VERSION}/lib/includes
|
|
|
|
#GNUTLS_LIBS=-lnettle -lgmp ../contrib/gnutls-${GNUTLS_VERSION}/lib/.libs/libgnutls.a
|
|
|
|
GNUTLS_LIBS=-lgmp -lgnutls -lnettle
|
|
|
|
|
|
|
|
GNUTLS_LDFLAGS=-L../contrib/gnutls-${GNUTLS_VERSION}/lib/.libs/
|
|
|
|
else
|
|
|
|
GNUTLS_CFLAGS=
|
2016-03-11 22:23:00 +01:00
|
|
|
GNUTLS_LIBS=-lgnutls -lnettle -lgmp
|
|
|
|
GNUTLS_LDFLAGS=
|
|
|
|
#-lgnutls -lnettle -lgmp
|
2014-08-20 19:55:47 +02:00
|
|
|
|
2015-02-08 11:42:01 +01:00
|
|
|
endif
|
2016-02-22 09:18:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
ifndef ARCH
|
|
|
|
ARCH = $(shell $(CC) -dumpmachine)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|