Update Red Hat Copyright Notices
[nbdkit.git] / common / include / Makefile.am
blob3162e92c263a5bb75c4ccce50e320602e1d70f81
1 # nbdkit
2 # Copyright Red Hat
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
11 # * Redistributions in binary form must reproduce the above copyright
12 # notice, this list of conditions and the following disclaimer in the
13 # documentation and/or other materials provided with the distribution.
15 # * Neither the name of Red Hat nor the names of its contributors may be
16 # used to endorse or promote products derived from this software without
17 # specific prior written permission.
19 # THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
20 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
23 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26 # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
29 # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 # SUCH DAMAGE.
32 include $(top_srcdir)/common-rules.mk
34 # These headers contain only common code shared by the core server,
35 # plugins and/or filters.  They are not installed.
36 EXTRA_DIST = \
37         ansi-colours.h \
38         array-size.h \
39         ascii-ctype.h \
40         ascii-string.h \
41         byte-swapping.h \
42         checked-overflow.h \
43         compiler-macros.h \
44         hexdigit.h \
45         isaligned.h \
46         ispowerof2.h \
47         iszero.h \
48         minmax.h \
49         nextnonzero.h \
50         random.h \
51         rounding.h \
52         static-assert.h \
53         tvdiff.h \
54         unique-name.h \
55         unix-path-max.h \
56         $(NULL)
58 # Unit tests.
60 TESTS = \
61         test-array-size \
62         test-ascii-ctype \
63         test-ascii-string \
64         test-byte-swapping \
65         test-checked-overflow \
66         test-isaligned \
67         test-ispowerof2 \
68         test-iszero \
69         test-minmax \
70         test-nextnonzero \
71         test-random \
72         test-tvdiff \
73         $(NULL)
74 check_PROGRAMS = $(TESTS)
76 test_array_size_SOURCES = test-array-size.c array-size.h
77 test_array_size_CPPFLAGS = -I$(srcdir)
78 test_array_size_CFLAGS = $(WARNINGS_CFLAGS)
80 test_ascii_ctype_SOURCES = test-ascii-ctype.c ascii-ctype.h
81 test_ascii_ctype_CPPFLAGS = -I$(srcdir)
82 test_ascii_ctype_CFLAGS = $(WARNINGS_CFLAGS)
84 test_ascii_string_SOURCES = test-ascii-string.c ascii-string.h
85 test_ascii_string_CPPFLAGS = -I$(srcdir)
86 test_ascii_string_CFLAGS = $(WARNINGS_CFLAGS)
88 test_byte_swapping_SOURCES = test-byte-swapping.c byte-swapping.h
89 test_byte_swapping_CPPFLAGS = -I$(srcdir)
90 test_byte_swapping_CFLAGS = $(WARNINGS_CFLAGS)
92 test_checked_overflow_SOURCES = test-checked-overflow.c checked-overflow.h
93 test_checked_overflow_CPPFLAGS = -I$(srcdir)
94 test_checked_overflow_CFLAGS = $(WARNINGS_CFLAGS)
96 test_isaligned_SOURCES = test-isaligned.c isaligned.h
97 test_isaligned_CPPFLAGS = -I$(srcdir)
98 test_isaligned_CFLAGS = $(WARNINGS_CFLAGS)
100 test_ispowerof2_SOURCES = test-ispowerof2.c ispowerof2.h
101 test_ispowerof2_CPPFLAGS = -I$(srcdir)
102 test_ispowerof2_CFLAGS = $(WARNINGS_CFLAGS)
104 test_iszero_SOURCES = test-iszero.c iszero.h
105 test_iszero_CPPFLAGS = -I$(srcdir)
106 test_iszero_CFLAGS = $(WARNINGS_CFLAGS)
108 test_minmax_SOURCES = test-minmax.c minmax.h
109 test_minmax_CPPFLAGS = -I$(srcdir)
110 test_minmax_CFLAGS = $(WARNINGS_CFLAGS)
112 test_nextnonzero_SOURCES = test-nextnonzero.c nextnonzero.h
113 test_nextnonzero_CPPFLAGS = -I$(srcdir)
114 test_nextnonzero_CFLAGS = $(WARNINGS_CFLAGS)
116 test_random_SOURCES = test-random.c random.h
117 test_random_CPPFLAGS = -I$(srcdir)
118 test_random_CFLAGS = $(WARNINGS_CFLAGS)
120 test_tvdiff_SOURCES = test-tvdiff.c tvdiff.h
121 test_tvdiff_CPPFLAGS = -I$(srcdir)
122 test_tvdiff_CFLAGS = $(WARNINGS_CFLAGS)