Debian Codegraph @

engine/read_only/Makefile.am

raw
1 # Copyright 2022 Jeffrey Kegler
2 # Permission is hereby granted, free of charge, to any person obtaining a
3 # copy of this software and associated documentation files (the "Software"),
4 # to deal in the Software without restriction, including without limitation
5 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
6 # and/or sell copies of the Software, and to permit persons to whom the
7 # Software is furnished to do so, subject to the following conditions:
8 #
9 # The above copyright notice and this permission notice shall be included
10 # in all copies or substantial portions of the Software.
11 #
12 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
16 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
17 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18 # OTHER DEALINGS IN THE SOFTWARE.
19
20 ## Makefile.am -- Process this file with automake to produce Makefile.in
21
22 AUTOMAKE_OPTIONS = subdir-objects
23 AM_CFLAGS = $(WARNING_CFLAGS) $(MARPA_DEBUG_FLAG)
24 AM_CPPFLAGS = $(WARNING_CPPFLAGS)
25 RELEASE= $(MARPA_LIB_MAJOR_VERSION).$(MARPA_LIB_MINOR_VERSION).$(MARPA_LIB_MICRO_VERSION)
26 ACLOCAL_AMFLAGS = -I m4
27 lib_LTLIBRARIES = libmarpa.la
28 libmarpa_la_SOURCES = marpa.c marpa.h \
29 marpa_obs.c marpa_obs.h \
30 marpa_avl.c marpa_avl.h \
31 marpa_tavl.c marpa_tavl.h \
32 marpa_ami.c marpa_ami.h \
33 marpa_codes.c
34 noinst_LIBRARIES = libmarpa.a
35 # This CFLAGS setting is a no-op, except that it allows
36 # these file to be build both with libtools and without
37 libmarpa_a_CFLAGS = $(AM_CFLAGS)
38 libmarpa_a_SOURCES = marpa.c marpa.h \
39 marpa_obs.c marpa_obs.h \
40 marpa_avl.c marpa_avl.h \
41 marpa_tavl.c marpa_tavl.h \
42 marpa_ami.c marpa_ami.h \
43 marpa_codes.c
44
45 # This method for including Russ Allbery's TAP harness follows
46 # his suggestions in "Using the harness" on his web page
47 # https://www.eyrie.org/~eagle/software/c-tap-harness/readme.html
48 #
49 check_PROGRAMS = tests/runtests \
50 tests/simple/rule1 tests/simple/trivial \
51 tests/simple/trivial1 tests/simple/depr_unvalued \
52 tests/simple/nits tests/simple/issue92a \
53 tests/simple/issue92b tests/simple/issue92c
54
55 tests_runtests_CPPFLAGS = \
56 -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
57 -DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
58 check_LIBRARIES = tests/tap/libtap.a
59 tests_tap_libtap_a_CPPFLAGS = -I$(abs_top_srcdir)/tests
60 tests_tap_libtap_a_SOURCES = tests/tap/basic.c tests/tap/basic.h \
61 tests/tap/float.c tests/tap/float.h tests/tap/macros.h
62
63 check-local: $(check_PROGRAMS)
64 cd tests && ./runtests -l $(abs_top_srcdir)/tests/TESTS
65
66 # Must turn off one of the warnings for Russ's runtests
67 tests_runtests_CFLAGS = $(AM_CFLAGS) -Wno-sign-conversion
68
69 tests_simple_rule1_LDADD = tests/tap/libtap.a libmarpa.a
70 tests_simple_trivial_LDADD = tests/tap/libtap.a libmarpa.a
71 tests_simple_trivial1_LDADD = tests/tap/libtap.a libmarpa.a
72 tests_simple_depr_unvalued_LDADD = tests/tap/libtap.a libmarpa.a
73 tests_simple_nits_LDADD = tests/tap/libtap.a libmarpa.a
74 tests_simple_issue92a_LDADD = tests/tap/libtap.a libmarpa.a
75 tests_simple_issue92b_LDADD = tests/tap/libtap.a libmarpa.a
76 tests_simple_issue92c_LDADD = tests/tap/libtap.a libmarpa.a
77
78 tests_simple_rule1_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
79 tests_simple_trivial_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
80 tests_simple_trivial1_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
81 tests_simple_depr_unvalued_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
82 tests_simple_nits_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
83 tests_simple_issue92a_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
84 tests_simple_issue92b_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
85 tests_simple_issue92c_CPPFLAGS = -I$(abs_top_srcdir)/tests/simple -I$(abs_top_srcdir)/tests
86
87 tests_simple_rule1_SOURCES = tests/simple/rule1.c
88 tests_simple_trivial_SOURCES = tests/simple/trivial.c
89 tests_simple_trivial1_SOURCES = tests/simple/trivial1.c \
90 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
91 tests_simple_depr_unvalued_SOURCES = tests/simple/depr_unvalued.c \
92 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
93 tests_simple_nits_SOURCES = tests/simple/nits.c \
94 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
95 tests_simple_issue92a_SOURCES = tests/simple/issue92a.c \
96 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
97 tests_simple_issue92b_SOURCES = tests/simple/issue92b.c \
98 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
99 tests_simple_issue92c_SOURCES = tests/simple/issue92c.c \
100 tests/simple/marpa_m_test.c tests/simple/marpa_m_test.h
101
102 EXTRA_DIST = README.INSTALL README.AIX libmarpa.pc GIT_LOG.txt \
103 win32/marpa.def Makefile.win32 win32/do_config_h.pl \
104 internals/libmarpa_ami.pdf internals/libmarpa_core.pdf \
105 api_docs/libmarpa_api.pdf api_docs/libmarpa_api.html api_docs/api_html.tar \
106 api_docs/libmarpa_api.info \
107 error_codes.table events.table steps.table \
108 version.m4 libmarpa_version.sh LIB_VERSION \
109 tests/libtap.sh tests/TESTS
110
111 libmarpa_la_LIBADD = $(LIBOBJS)
112 libmarpa_la_LDFLAGS = -release $(RELEASE)
113 include_HEADERS = marpa.h \
114 marpa_avl.h marpa_tavl.h marpa_ami.h \
115 marpa_obs.h marpa_codes.h
116 TEXI2PDF = texi2pdf --pdf --batch --quiet
117
118 dist-hook:
119 chmod u+w $(distdir)/GIT_LOG.txt
120 git log -n 5 >> $(distdir)/GIT_LOG.txt