Makefile.am 1011 Bytes
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = subdir-objects

AM_CFLAGS += -I../include/ -std=c99 -DREENTRANT -lpthread
AM_LDFLAGS += -lpthread

TR_HASH = hexdecode.c \
	  hexencode.c \
	  sdbm.c \
	  urldecode.c \
	  sha1.c \
	  sse/sha1.c \
	  uuid/compare.c \
	  uuid/_format3or5.c \
	  uuid/parse.c \
	  uuid/unparse.c \
	  uuid/uuid.c \
	  uuid/version1.c \
	  uuid/version3.c \
	  uuid/version5.c

lib_LTLIBRARIES = libtrhashing.la
bin_PROGRAMS = trsha1speed trencodespeed

libtrhashing_la_SOURCES = $(TR_HASH)
libtrhashing_la_CFLAGS  = $(AM_CFLAGS) -std=c99 $(OPENSSL)
libtrhashing_la_LIBADD  = 
libtrhashing_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS)

trsha1speed_SOURCES = sha1speed.c
trsha1speed_CFLAGS  = $(AM_CFLAGS) $(OPENSSL)
trsha1speed_LDADD   = -ltrhashing -ltrbase -lcrypto -luuid
trsha1speed_LDFLAGS = $(AM_LDFLAGS)

trencodespeed_SOURCES = encodespeed.c
trencodespeed_CFLAGS  = $(AM_CFLAGS)
trencodespeed_LDADD   = -ltrhashing -ltrbase -lcrypto -luuid
trencodespeed_LDFLAGS = $(AM_LDFLAGS)