-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
185 lines (168 loc) · 4.19 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Copyright (c) Omar Boukli-Hacene. All rights reserved.
# Distributed under an MIT-style license that can be
# found in the LICENSE file.
# SPDX-License-Identifier: MIT
ACLOCAL_AMFLAGS = -I m4
dist_doc_DATA = README.md
AM_CPPFLAGS =
AM_CFLAGS = \
-std=c99 \
-Wall \
-Wcast-align \
-Wconversion \
-Wdouble-promotion \
-Wduplicated-branches \
-Wduplicated-cond \
-Werror \
-Wformat=2 \
-Wimplicit-fallthrough \
-Wlogical-op \
-Wmisleading-indentation \
-Wnull-dereference \
-Wpedantic \
-Wshadow \
-Wsign-conversion \
-Wunused
AM_CXXFLAGS = \
-Wall \
-Wcast-align \
-Wconversion \
-Wdouble-promotion \
-Wduplicated-branches \
-Wduplicated-cond \
-Weffc++ \
-Werror \
-Wformat=2 \
-Wimplicit-fallthrough \
-Wlogical-op \
-Wmisleading-indentation \
-Wnon-virtual-dtor \
-Wnull-dereference \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wshadow \
-Wsign-conversion \
-Wunused \
-Wuseless-cast
AM_LDFLAGS = \
-no-undefined \
-version-info $(LIBTROMINO_CURRENT):$(LIBTROMINO_REVISION):$(LIBTROMINO_AGE) \
-Wl,--fatal-warnings \
-Wl,--no-undefined \
-Wl,--warn-alternate-em \
-Wl,--warn-common \
-Wl,--warn-unresolved-symbols
if CODE_COVERAGE_ENABLED
AM_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS += $(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS += $(CODE_COVERAGE_CXXFLAGS)
AM_LDFLAGS += $(CODE_COVERAGE_LIBS)
endif
bin_PROGRAMS =
include_HEADERS =
lib_LTLIBRARIES =
libtromino_la_SOURCES = src/core/tromino.c
libtromino_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/include/tromino/core
include_HEADERS += include/tromino/core/tromino.h
lib_LTLIBRARIES += libtromino.la
libtromino_validation_la_SOURCES = src/validation/validation.c
libtromino_validation_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/include/tromino/validation
include_HEADERS += include/tromino/validation/validation.h
lib_LTLIBRARIES += libtromino-validation.la
tromino_SOURCES = \
src/cli/cli_models.hpp \
src/cli/cli_options.cpp \
src/cli/cli_options.hpp \
src/cli/init.cpp \
src/cli/init.hpp \
src/cli/main.cpp \
src/cli/params.hpp \
src/cli/trmn_graph_vt.cpp \
src/cli/trmn_graph_vt.hpp \
src/cli/trmn_graph.hpp \
src/cli/wrapper.cpp \
src/cli/wrapper.hpp
tromino_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/include
tromino_CXXFLAGS = \
$(AM_CXXFLAGS) \
-std=c++20
tromino_LDADD = \
$(top_builddir)/libtromino.la \
$(top_builddir)/libtromino-validation.la
bin_PROGRAMS += tromino
libtromino_gfx2d_la_SOURCES = \
src/gfx2d/gfx2d.cpp \
src/gfx2d/view_model.cpp \
src/gfx2d/window.cpp
libtromino_gfx2d_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/include/tromino/gfx2d
libtromino_gfx2d_la_LDFLAGS = \
$(AM_LDFLAGS) \
-lSDL2
include_HEADERS += \
include/tromino/gfx2d/board.hpp \
include/tromino/gfx2d/gfx2d.hpp \
include/tromino/gfx2d/step.hpp \
include/tromino/gfx2d/style.hpp \
include/tromino/gfx2d/view_model.hpp \
include/tromino/gfx2d/window.hpp
lib_LTLIBRARIES += libtromino-gfx2d.la
tromino2d_SOURCES = \
src/gui/callback.cpp \
src/gui/callback.hpp \
src/gui/cli_models.hpp \
src/gui/cli_options.cpp \
src/gui/cli_options.hpp \
src/gui/init.cpp \
src/gui/init.hpp \
src/gui/main.cpp \
src/gui/params.hpp
tromino2d_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/include
tromino2d_CXXFLAGS = \
$(AM_CXXFLAGS) \
-std=c++20
tromino2d_LDFLAGS = \
$(AM_LDFLAGS) \
-lpthread \
-lSDL2
tromino2d_LDADD = \
$(top_builddir)/libtromino.la \
$(top_builddir)/libtromino-gfx2d.la \
$(top_builddir)/libtromino-validation.la
bin_PROGRAMS += tromino2d
check_PROGRAMS = libtromino_test
libtromino_test_SOURCES = \
test/core/tromino_2x2_unittest.cpp \
test/core/tromino_4x4_unittest.cpp \
test/core/tromino_64x64_unittest.cpp \
test/core/tromino_stop_flag.cpp \
test/core/unittest_helper.cpp \
test/core/unittest_helper.hpp \
test/main.cpp \
test/validation/validation_unittest.cpp
libtromino_test_CXXFLAGS = \
$(AM_CXXFLAGS) \
-std=c++20
libtromino_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(BOOST_CPPFLAGS) \
-I$(top_srcdir)/include
libtromino_test_LDFLAGS = \
$(AM_LDFLAGS) \
$(BOOST_LDFLAGS) \
$(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS)
libtromino_test_LDADD = \
$(BOOST_UNIT_TEST_FRAMEWORK_LIB) \
$(top_builddir)/libtromino.la \
$(top_builddir)/libtromino-validation.la
TESTS = $(check_PROGRAMS)