-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
77 lines (65 loc) · 1.59 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
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I m4
SOURCES_COMMON = \
ant.hpp \
ant.cpp \
data.hpp \
data.cpp \
trail_parser.hpp \
trail_parser.cpp
SOURCES_SDL = \
app/sdl.hpp \
app/sdl.cpp \
app/texture_manager.hpp \
app/texture_manager.cpp
dist_pkgdata_DATA = assets/ant.png assets/food.png
LIBS_SDL = -lSDL2 -lSDL2_image
LIBS_STREE = -lstree -lstreegp
# Programs
bin_PROGRAMS = trail_editor evolve_ant ant_viewer
# Editor
trail_editor_SOURCES = \
$(SOURCES_COMMON) \
$(SOURCES_SDL) \
app/trail_editor.hpp \
app/trail_editor.cpp \
trail_editor.cpp
trail_editor_LDADD = $(LIBS_STREE) $(LIBS_SDL)
trail_editor_CXXFLAGS = \
-DDATADIR=\"$(datadir)/antview/\" \
-Wl,-rpath -Wl,$(prefix)/lib # ??
# Viewer
ant_viewer_SOURCES = \
$(SOURCES_COMMON) \
$(SOURCES_SDL) \
app/ant_viewer.hpp \
app/ant_viewer.cpp \
primitives.hpp \
primitives.cpp \
ant_viewer.cpp
ant_viewer_LDADD = $(LIBS_STREE) $(LIBS_SDL)
ant_viewer_CXXFLAGS = \
-DDATADIR=\"$(datadir)/antview/\" \
-Wl,-rpath -Wl,$(prefix)/lib # ??
# Evolution
evolve_ant_SOURCES = \
$(SOURCES_COMMON) \
evolve_ant.cpp \
primitives.hpp \
primitives.cpp
evolve_ant_LDADD = $(LIBS_STREE)
evolve_ant_CXXFLAGS = -Wl,-rpath -Wl,$(prefix)/lib
# Tests
TESTS = \
test_trail_parser1 \
test_ant1
check_PROGRAMS = $(TESTS)
test_trail_parser1_SOURCES = tests/trail_parser1.cpp \
ant.hpp ant.cpp \
trail_parser.hpp trail_parser.cpp
test_ant1_SOURCES = tests/ant1.cpp \
ant.hpp ant.cpp \
primitives.hpp primitives.cpp \
trail_parser.hpp trail_parser.cpp
test_ant1_LDADD = $(LIBS_STREE)
test_ant1_CXXFLAGS = -Wl,-rpath -Wl,$(prefix)/lib # ??