2012-10-03 14:31:35 +02:00
|
|
|
include ../config.mk
|
|
|
|
|
2009-02-05 22:08:46 +01:00
|
|
|
NAME=r_hash
|
2018-08-06 15:18:50 +02:00
|
|
|
PCLIBS=@LIBXXHASH@
|
2010-11-08 19:30:25 +01:00
|
|
|
# HACK
|
|
|
|
ifneq ($(OSTYPE),darwin)
|
2013-06-05 21:58:31 +00:00
|
|
|
ifneq ($(OSTYPE),haiku)
|
2009-02-05 22:08:46 +01:00
|
|
|
LDFLAGS+=-lm
|
|
|
|
LINK=-lm
|
2010-11-08 19:30:25 +01:00
|
|
|
endif
|
2013-06-05 21:58:31 +00:00
|
|
|
endif
|
2009-02-05 22:08:46 +01:00
|
|
|
|
2020-06-12 10:49:28 +08:00
|
|
|
R2DEPS=r_util
|
2019-06-06 16:53:58 -04:00
|
|
|
OBJS=state.o hash.o hamdist.o crca.o fletcher.o
|
2020-04-02 14:30:27 +02:00
|
|
|
OBJS+=entropy.o hcalc.o adler32.o luhn.o
|
2018-08-10 10:17:48 +02:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LIB_SSL),1)
|
|
|
|
CFLAGS+=${SSL_CFLAGS}
|
|
|
|
LDFLAGS+=${SSL_LDFLAGS}
|
|
|
|
LINK+=${SSL_LDFLAGS}
|
|
|
|
else
|
|
|
|
OBJS+=md4.o md5.o sha1.o sha2.o
|
|
|
|
endif
|
2018-08-06 15:18:50 +02:00
|
|
|
|
|
|
|
ifeq ($(USE_LIB_XXHASH),1)
|
|
|
|
LDFLAGS+=${LIB_XXHASH}
|
|
|
|
LINK+=${LIBXXHASH}
|
|
|
|
else
|
|
|
|
OBJS+=xxhash.o
|
|
|
|
endif
|
2009-02-05 22:08:46 +01:00
|
|
|
|
|
|
|
include ../rules.mk
|