]> git.proxmox.com Git - ceph.git/blob - ceph/src/isa-l/igzip/Makefile.am
5a94a9438a548e83a8dfbb462c229c32d0e23bd7
[ceph.git] / ceph / src / isa-l / igzip / Makefile.am
1 ########################################################################
2 # Copyright(c) 2011-2016 Intel Corporation All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in
11 # the documentation and/or other materials provided with the
12 # distribution.
13 # * Neither the name of Intel Corporation nor the names of its
14 # contributors may be used to endorse or promote products derived
15 # from this software without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 ########################################################################
29
30 lsrc += igzip/igzip.c igzip/hufftables_c.c \
31 igzip/crc_utils_01.asm \
32 igzip/crc_utils_04.asm \
33 igzip/igzip_body_01.asm igzip/igzip_body_04.asm igzip/igzip_finish.asm \
34 igzip/igzip_stateless_01.asm igzip/igzip_stateless_04.asm \
35 igzip/crc_data.asm \
36 igzip/crc32_gzip.asm igzip/detect_repeated_char.asm \
37 igzip/igzip_multibinary.asm \
38 igzip/igzip_stateless_base.c \
39 igzip/igzip_base.c
40
41 extern_hdrs += include/igzip_lib.h
42
43 pkginclude_HEADERS += include/types.h
44
45 unit_tests += igzip/igzip_rand_test
46
47 check_tests += igzip/igzip_check
48
49 perf_tests += igzip/igzip_perf igzip/igzip_sync_flush_perf
50
51 other_tests += igzip/igzip_file_perf igzip/igzip_sync_flush_file_perf igzip/igzip_stateless_file_perf
52
53 other_src += igzip/bitbuf2.asm igzip/data_struct2.asm \
54 igzip/igzip_buffer_utils_01.asm \
55 igzip/igzip_buffer_utils_04.asm \
56 igzip/igzip_body.asm igzip/igzip_finish.asm \
57 igzip/lz0a_const.asm igzip/options.asm igzip/stdmac.asm igzip/igzip_compare_types.asm \
58 igzip/bitbuf2.h igzip/repeated_char_result.h \
59 igzip/igzip_body.asm \
60 igzip/igzip_stateless.asm \
61 igzip/huffman.asm \
62 include/reg_sizes.asm \
63 include/multibinary.asm \
64 include/test.h \
65 igzip/huffman.h
66
67
68 examples += igzip/igzip_example igzip/igzip_sync_flush_example
69
70 igzip_rand_test: igzip_inflate_ref.o
71 igzip_igzip_rand_test_LDADD = igzip/igzip_inflate_ref.lo libisal.la
72
73 # Include tools to make custom Huffman tables based on sample data
74 other_tests += igzip/generate_custom_hufftables
75 other_tests += igzip/generate_constant_block_header
76 other_src += igzip/huff_codes.h
77 lsrc += igzip/huff_codes.c
78
79 # Include tools and tests using the reference inflate
80 other_tests += igzip/igzip_inflate_perf
81 other_tests += igzip/igzip_inflate_test
82 other_src += igzip/igzip_inflate_ref.h
83 other_src += igzip/igzip_inflate_ref.c
84 other_src += igzip/crc_inflate.h
85
86 igzip_inflate_perf: igzip_inflate_ref.o
87 igzip_inflate_perf: LDLIBS += -lz
88 igzip_igzip_inflate_perf_LDADD = igzip/igzip_inflate_ref.lo libisal.la
89 igzip_igzip_inflate_perf_LDFLAGS = -lz
90 igzip_inflate_test: igzip_inflate_ref.o
91 igzip_inflate_test: LDLIBS += -lz
92 igzip_igzip_inflate_test_LDADD = igzip/igzip_inflate_ref.lo libisal.la
93 igzip_igzip_inflate_test_LDFLAGS = -lz
94 igzip_check: igzip_inflate_ref.o
95 igzip_igzip_check_LDADD = igzip/igzip_inflate_ref.lo libisal.la