xref: /freebsd/contrib/kyua/engine/Makefile.am.inc (revision 02e9120893770924227138ba49df1edb3896112a)
1# Copyright 2010 The Kyua Authors.
2# 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 are
6# met:
7#
8# * Redistributions of source code must retain the above copyright
9#   notice, this list of conditions and the following disclaimer.
10# * Redistributions in binary form must reproduce the above copyright
11#   notice, this list of conditions and the following disclaimer in the
12#   documentation and/or other materials provided with the distribution.
13# * Neither the name of Google Inc. nor the names of its contributors
14#   may be used to endorse or promote products derived from this software
15#   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
29ENGINE_CFLAGS = $(STORE_CFLAGS) $(MODEL_CFLAGS) $(UTILS_CFLAGS)
30ENGINE_LIBS = libengine.a $(STORE_LIBS) $(MODEL_LIBS) $(UTILS_LIBS)
31
32noinst_LIBRARIES += libengine.a
33libengine_a_CPPFLAGS  = $(STORE_CFLAGS) $(UTILS_CFLAGS)
34libengine_a_SOURCES  = engine/atf.cpp
35libengine_a_SOURCES += engine/atf.hpp
36libengine_a_SOURCES += engine/atf_list.cpp
37libengine_a_SOURCES += engine/atf_list.hpp
38libengine_a_SOURCES += engine/atf_result.cpp
39libengine_a_SOURCES += engine/atf_result.hpp
40libengine_a_SOURCES += engine/atf_result_fwd.hpp
41libengine_a_SOURCES += engine/config.cpp
42libengine_a_SOURCES += engine/config.hpp
43libengine_a_SOURCES += engine/config_fwd.hpp
44libengine_a_SOURCES += engine/exceptions.cpp
45libengine_a_SOURCES += engine/exceptions.hpp
46libengine_a_SOURCES += engine/filters.cpp
47libengine_a_SOURCES += engine/filters.hpp
48libengine_a_SOURCES += engine/filters_fwd.hpp
49libengine_a_SOURCES += engine/kyuafile.cpp
50libengine_a_SOURCES += engine/kyuafile.hpp
51libengine_a_SOURCES += engine/kyuafile_fwd.hpp
52libengine_a_SOURCES += engine/plain.cpp
53libengine_a_SOURCES += engine/plain.hpp
54libengine_a_SOURCES += engine/requirements.cpp
55libengine_a_SOURCES += engine/requirements.hpp
56libengine_a_SOURCES += engine/scanner.cpp
57libengine_a_SOURCES += engine/scanner.hpp
58libengine_a_SOURCES += engine/scanner_fwd.hpp
59libengine_a_SOURCES += engine/tap.cpp
60libengine_a_SOURCES += engine/tap.hpp
61libengine_a_SOURCES += engine/tap_parser.cpp
62libengine_a_SOURCES += engine/tap_parser.hpp
63libengine_a_SOURCES += engine/tap_parser_fwd.hpp
64libengine_a_SOURCES += engine/scheduler.cpp
65libengine_a_SOURCES += engine/scheduler.hpp
66libengine_a_SOURCES += engine/scheduler_fwd.hpp
67
68if WITH_ATF
69tests_enginedir = $(pkgtestsdir)/engine
70
71tests_engine_DATA = engine/Kyuafile
72EXTRA_DIST += $(tests_engine_DATA)
73
74tests_engine_PROGRAMS = engine/atf_helpers
75engine_atf_helpers_SOURCES = engine/atf_helpers.cpp
76engine_atf_helpers_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
77engine_atf_helpers_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
78
79tests_engine_PROGRAMS += engine/atf_test
80engine_atf_test_SOURCES = engine/atf_test.cpp
81engine_atf_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
82engine_atf_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
83
84tests_engine_PROGRAMS += engine/atf_list_test
85engine_atf_list_test_SOURCES = engine/atf_list_test.cpp
86engine_atf_list_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
87engine_atf_list_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
88
89tests_engine_PROGRAMS += engine/atf_result_test
90engine_atf_result_test_SOURCES = engine/atf_result_test.cpp
91engine_atf_result_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
92engine_atf_result_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
93
94tests_engine_PROGRAMS += engine/config_test
95engine_config_test_SOURCES = engine/config_test.cpp
96engine_config_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
97engine_config_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
98
99tests_engine_PROGRAMS += engine/exceptions_test
100engine_exceptions_test_SOURCES = engine/exceptions_test.cpp
101engine_exceptions_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
102engine_exceptions_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
103
104tests_engine_PROGRAMS += engine/filters_test
105engine_filters_test_SOURCES = engine/filters_test.cpp
106engine_filters_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
107engine_filters_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
108
109tests_engine_PROGRAMS += engine/kyuafile_test
110engine_kyuafile_test_SOURCES = engine/kyuafile_test.cpp
111engine_kyuafile_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
112engine_kyuafile_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
113
114tests_engine_PROGRAMS += engine/plain_helpers
115engine_plain_helpers_SOURCES = engine/plain_helpers.cpp
116engine_plain_helpers_CXXFLAGS = $(UTILS_CFLAGS)
117engine_plain_helpers_LDADD = $(UTILS_LIBS)
118
119tests_engine_PROGRAMS += engine/plain_test
120engine_plain_test_SOURCES = engine/plain_test.cpp
121engine_plain_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
122engine_plain_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
123
124tests_engine_PROGRAMS += engine/requirements_test
125engine_requirements_test_SOURCES = engine/requirements_test.cpp
126engine_requirements_test_CXXFLAGS = $(ENGINE_CFLAGS) $(UTILS_TEST_CFLAGS) \
127                                    $(ATF_CXX_CFLAGS)
128engine_requirements_test_LDADD = $(ENGINE_LIBS) $(UTILS_TEST_LIBS) \
129                                 $(ATF_CXX_LIBS)
130
131tests_engine_PROGRAMS += engine/scanner_test
132engine_scanner_test_SOURCES = engine/scanner_test.cpp
133engine_scanner_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
134engine_scanner_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
135
136tests_engine_PROGRAMS += engine/tap_helpers
137engine_tap_helpers_SOURCES = engine/tap_helpers.cpp
138engine_tap_helpers_CXXFLAGS = $(UTILS_CFLAGS)
139engine_tap_helpers_LDADD = $(UTILS_LIBS)
140
141tests_engine_PROGRAMS += engine/tap_test
142engine_tap_test_SOURCES = engine/tap_test.cpp
143engine_tap_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
144engine_tap_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
145
146tests_engine_PROGRAMS += engine/tap_parser_test
147engine_tap_parser_test_SOURCES = engine/tap_parser_test.cpp
148engine_tap_parser_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
149engine_tap_parser_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
150
151tests_engine_PROGRAMS += engine/scheduler_test
152engine_scheduler_test_SOURCES = engine/scheduler_test.cpp
153engine_scheduler_test_CXXFLAGS = $(ENGINE_CFLAGS) $(ATF_CXX_CFLAGS)
154engine_scheduler_test_LDADD = $(ENGINE_LIBS) $(ATF_CXX_LIBS)
155endif
156