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=
|
2018-03-17 12:51:51 +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=-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=
|
2015-02-08 11:42:01 +01:00
|
|
|
endif
|
2016-02-22 09:18:35 +01:00
|
|
|
|
|
|
|
|
2018-03-02 00:12:38 +01:00
|
|
|
ifeq ($(CC),clang)
|
|
|
|
LDFLAGS += -g -L/usr/local/lib
|
2018-04-01 13:59:36 +02:00
|
|
|
CFLAGS += -fPIC $(OPTFLAGS) -D_REENTRANT -I /usr/local/include -I../
|
2018-03-17 12:51:51 +01:00
|
|
|
LD = clang
|
2018-03-02 00:12:38 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CC),gcc)
|
|
|
|
LDFLAGS += -g -L/usr/local/lib
|
2018-04-01 13:59:36 +02:00
|
|
|
CFLAGS += -fPIC $(OPTFLAGS) -D_REENTRANT -I /usr/local/include -I../
|
2018-03-02 00:12:38 +01:00
|
|
|
LD = gcc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CC),tcc)
|
|
|
|
LDFLAGS += -g -L/usr/local/lib
|
2018-04-01 13:59:36 +02:00
|
|
|
CFLAGS += -Wall $(OPTFLAGS) -Wunusupported -Wimplicit-function-declaration -I /usr/local/include -I../
|
2018-03-02 00:12:38 +01:00
|
|
|
LD = tcc
|
|
|
|
endif
|
|
|
|
|
2018-03-26 15:11:57 +02:00
|
|
|
ifeq ($(CC),cc)
|
|
|
|
LDFLAGS += -g -L/usr/local/lib
|
2018-04-01 13:59:36 +02:00
|
|
|
CFLAGS += -fPIC $(OPTFLAGS) -D_REENTRANT -I /usr/local/include -I../
|
2018-03-26 15:11:57 +02:00
|
|
|
LD = cc
|
|
|
|
endif
|
|
|
|
|
2018-03-02 00:12:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
CFLAGS += -DWITH_IPV6 -DWITH_RMAC_SUPPORT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|