2016-06-04 03:05:08 +02:00
|
|
|
EXTRA_DIST = autogen.sh Makefile.unx make.inc Makefile.nmake isa-l.def LICENSE README.md
|
2015-10-22 23:54:34 +02:00
|
|
|
CLEANFILES =
|
|
|
|
LDADD =
|
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
|
|
|
noinst_HEADERS =
|
|
|
|
pkginclude_HEADERS = include/test.h
|
|
|
|
noinst_LTLIBRARIES =
|
2015-11-18 23:52:20 +01:00
|
|
|
INCLUDE = -I $(srcdir)/include/
|
2015-10-22 23:54:34 +02:00
|
|
|
|
|
|
|
lsrc=
|
2016-07-11 10:25:18 +02:00
|
|
|
src_include=
|
2015-10-22 23:54:34 +02:00
|
|
|
extern_hdrs=
|
|
|
|
other_src=
|
|
|
|
check_tests=
|
|
|
|
unit_tests=
|
|
|
|
perf_tests=
|
|
|
|
unit_tests_extra=
|
|
|
|
perf_tests_extra=
|
|
|
|
examples=
|
|
|
|
other_tests=
|
|
|
|
lsrc32=
|
|
|
|
unit_tests32=
|
|
|
|
perf_tests32=
|
|
|
|
|
|
|
|
# Include units
|
2015-11-18 23:52:20 +01:00
|
|
|
|
2015-10-22 23:54:34 +02:00
|
|
|
include erasure_code/Makefile.am
|
2016-04-27 00:55:12 +02:00
|
|
|
include raid/Makefile.am
|
2016-05-03 19:00:35 +02:00
|
|
|
include crc/Makefile.am
|
2016-06-02 22:52:23 +02:00
|
|
|
include igzip/Makefile.am
|
2015-10-22 23:54:34 +02:00
|
|
|
|
|
|
|
# LIB version info not necessarily the same as package version
|
|
|
|
LIBISAL_CURRENT=2
|
2016-06-04 03:03:11 +02:00
|
|
|
LIBISAL_REVISION=16
|
2015-10-22 23:54:34 +02:00
|
|
|
LIBISAL_AGE=0
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libisal.la
|
|
|
|
pkginclude_HEADERS += $(sort ${extern_hdrs})
|
|
|
|
libisal_la_SOURCES = ${lsrc}
|
|
|
|
nobase_include_HEADERS = isa-l.h
|
|
|
|
libisal_la_LDFLAGS = $(AM_LDFLAGS) \
|
|
|
|
-version-info $(LIBISAL_CURRENT):$(LIBISAL_REVISION):$(LIBISAL_AGE)
|
|
|
|
libisal_la_LIBADD = ${noinst_LTLIBRARIES}
|
|
|
|
|
|
|
|
EXTRA_DIST += ${other_src}
|
|
|
|
EXTRA_DIST += Release_notes.txt
|
|
|
|
|
|
|
|
# For tests
|
|
|
|
LDADD += libisal.la
|
|
|
|
check_PROGRAMS = ${check_tests}
|
|
|
|
TESTS = ${check_tests}
|
|
|
|
|
|
|
|
# For additional tests
|
|
|
|
EXTRA_PROGRAMS = ${unit_tests}
|
|
|
|
EXTRA_PROGRAMS += ${perf_tests}
|
|
|
|
EXTRA_PROGRAMS += ${other_tests}
|
|
|
|
EXTRA_PROGRAMS += ${examples}
|
|
|
|
CLEANFILES += ${EXTRA_PROGRAMS}
|
|
|
|
|
|
|
|
perfs: ${perf_tests}
|
|
|
|
tests: ${unit_tests}
|
2016-08-25 19:48:28 +02:00
|
|
|
checks: ${check_tests}
|
2015-10-22 23:54:34 +02:00
|
|
|
other: ${other_tests}
|
|
|
|
perf: $(addsuffix .run,$(perf_tests))
|
|
|
|
ex: ${examples}
|
|
|
|
test: $(addsuffix .run,$(unit_tests))
|
|
|
|
|
|
|
|
# Build rule to run tests
|
|
|
|
%.run: %
|
|
|
|
$<
|
|
|
|
@echo Completed run: $<
|
|
|
|
|
2015-11-18 23:52:20 +01:00
|
|
|
# Support for yasm/nasm
|
|
|
|
if USE_YASM
|
|
|
|
as_filter = ${srcdir}/tools/yasm-filter.sh
|
|
|
|
endif
|
|
|
|
if USE_NASM
|
|
|
|
as_filter = ${srcdir}/tools/nasm-filter.sh
|
|
|
|
endif
|
|
|
|
|
|
|
|
CCAS = $(as_filter)
|
|
|
|
EXTRA_DIST += tools/yasm-filter.sh tools/nasm-filter.sh
|
2016-07-11 10:25:18 +02:00
|
|
|
|
|
|
|
AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${D}
|
|
|
|
AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${D}
|
2015-10-22 23:54:34 +02:00
|
|
|
|
|
|
|
.asm.s:
|
|
|
|
@echo " MKTMP " $@;
|
|
|
|
@cp $< $@
|
|
|
|
|
|
|
|
# Generate isa-l.h
|
|
|
|
BUILT_SOURCES = isa-l.h
|
|
|
|
CLEANFILES += isa-l.h
|
|
|
|
isa-l.h:
|
|
|
|
@echo 'Building $@'
|
|
|
|
@echo '' >> $@
|
|
|
|
@echo '#ifndef _ISAL_H_' >> $@
|
|
|
|
@echo '#define _ISAL_H_' >> $@
|
|
|
|
@echo '' >> $@
|
|
|
|
@echo '#define.ISAL_MAJOR_VERSION.${VERSION}' | ${AWK} -F . '{print $$1, $$2, $$3}' >> $@
|
|
|
|
@echo '#define.ISAL_MINOR_VERSION.${VERSION}' | ${AWK} -F . '{print $$1, $$2, $$4}' >> $@
|
|
|
|
@echo '#define.ISAL_PATCH_VERSION.${VERSION}' | ${AWK} -F . '{print $$1, $$2, $$5}' >> $@
|
|
|
|
@echo '#define ISAL_MAKE_VERSION(maj, min, patch) ((maj) * 0x10000 + (min) * 0x100 + (patch))' >> $@
|
|
|
|
@echo '#define ISAL_VERSION ISAL_MAKE_VERSION(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION)' >> $@
|
|
|
|
@echo '' >> $@
|
2015-11-18 23:52:20 +01:00
|
|
|
@for unit in $(sort $(extern_hdrs)); do echo "#include <isa-l/$$unit>" | sed -e 's;include/;;' >> $@; done
|
2015-10-22 23:54:34 +02:00
|
|
|
@echo '#endif //_ISAL_H_' >> $@
|
|
|
|
|
|
|
|
|
|
|
|
license = bsd
|
|
|
|
licc = $(srcdir)/doc/license_$(license)_c.txt
|
|
|
|
lica = $(srcdir)/doc/license_$(license)_asm.txt
|
|
|
|
licm = $(srcdir)/doc/license_$(license)_make.txt
|
|
|
|
|