summaryrefslogtreecommitdiff
path: root/src/Makefile_Efreet.am
blob: 4ff3aecdf751354d7684fca0d303a4cf403131e1 (plain)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238

### Library

lib_LTLIBRARIES += \
lib/efreet/libefreet.la \
lib/efreet/libefreet_mime.la \
lib/efreet/libefreet_trash.la

EFREET_COMMON_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/efreet\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
-DDATA_DIR=\"$(datadir)\" \
-DLOCALE_DIR=\"@LOCALE_DIR@\" \
@EFREET_CFLAGS@

installed_efreetmainheadersdir = $(includedir)/efreet-@VMAJ@
dist_installed_efreetmainheaders_DATA = \
lib/efreet/Efreet.h \
lib/efreet/efreet_base.h \
lib/efreet/efreet_desktop.h \
lib/efreet/efreet_icon.h \
lib/efreet/efreet_ini.h \
lib/efreet/efreet_menu.h \
lib/efreet/efreet_utils.h \
lib/efreet/efreet_uri.h \
lib/efreet/Efreet_Mime.h \
lib/efreet/Efreet_Trash.h

# libefreet.la
lib_efreet_libefreet_la_SOURCES = \
lib/efreet/efreet.c \
lib/efreet/efreet_base.c \
lib/efreet/efreet_icon.c \
lib/efreet/efreet_xml.c \
lib/efreet/efreet_ini.c \
lib/efreet/efreet_desktop.c \
lib/efreet/efreet_desktop_command.c \
lib/efreet/efreet_menu.c \
lib/efreet/efreet_utils.c \
lib/efreet/efreet_uri.c \
lib/efreet/efreet_cache.c \
lib/efreet/efreet_private.h \
lib/efreet/efreet_xml.h \
lib/efreet/efreet_cache_private.h

lib_efreet_libefreet_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_la_LIBADD = @EFREET_LIBS@ @EVIL_LIBS@
lib_efreet_libefreet_la_DEPENDENCIES = @EFREET_INTERNAL_LIBS@
lib_efreet_libefreet_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

# libefreet_mime.la
lib_efreet_libefreet_mime_la_SOURCES = lib/efreet/efreet_mime.c
lib_efreet_libefreet_mime_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_mime_la_LIBADD = @USE_EFREET_LIBS@ @EVIL_LIBS@
lib_efreet_libefreet_mime_la_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
lib_efreet_libefreet_mime_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

# libefreet_trash.la
lib_efreet_libefreet_trash_la_SOURCES = lib/efreet/efreet_trash.c
lib_efreet_libefreet_trash_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_trash_la_LIBADD = @USE_EFREET_LIBS@ @EVIL_LIBS@
lib_efreet_libefreet_trash_la_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
lib_efreet_libefreet_trash_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@


### Binary

if HAVE_WIN32
USE_EFREET_BIN_LIBS = -L$(top_builddir)/src/lib/evil @USE_EFREET_LIBS@
else
USE_EFREET_BIN_LIBS = @USE_EFREET_LIBS@
endif

bin_PROGRAMS += bin/efreet/efreetd

bin_efreet_efreetd_SOURCES = \
bin/efreet/efreetd.c \
bin/efreet/efreetd.h \
bin/efreet/efreetd_dbus.h \
bin/efreet/efreetd_dbus.c \
bin/efreet/efreetd_cache.h \
bin/efreet/efreetd_cache.c

bin_efreet_efreetd_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreetd_LDADD = $(USE_EFREET_BIN_LIBS)
bin_efreet_efreetd_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@

efreetinternal_bindir=$(libdir)/efreet/$(MODULE_ARCH)
efreetinternal_bin_PROGRAMS = \
bin/efreet/efreet_desktop_cache_create \
bin/efreet/efreet_icon_cache_create

bin_efreet_efreet_desktop_cache_create_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreet_desktop_cache_create_LDADD = $(USE_EFREET_BIN_LIBS)
bin_efreet_efreet_desktop_cache_create_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
bin_efreet_efreet_desktop_cache_create_SOURCES = bin/efreet/efreet_desktop_cache_create.c

bin_efreet_efreet_icon_cache_create_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreet_icon_cache_create_LDADD = $(USE_EFREET_BIN_LIBS)
bin_efreet_efreet_icon_cache_create_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
bin_efreet_efreet_icon_cache_create_SOURCES = bin/efreet/efreet_icon_cache_create.c

### Unit tests

if EFL_ENABLE_TESTS

noinst_PROGRAMS += \
tests/efreet/efreet_test \
tests/efreet/efreet_async_test \
tests/efreet/efreet_spec_test \
tests/efreet/efreet_cache_test \
tests/efreet/efreet_icon_cache_dump \
tests/efreet/efreet_user_dir \
tests/efreet/compare/efreet_alloc \
tests/efreet/compare/efreet_menu_alloc


# efreet_test
tests_efreet_efreet_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_test_LDADD = \
@USE_EFREET_LIBS@ \
lib/efreet/libefreet_mime.la
tests_efreet_efreet_test_DEPENDENCIES = \
@USE_EFREET_INTERNAL_LIBS@ \
lib/efreet/libefreet_mime.la

tests_efreet_efreet_test_SOURCES = \
tests/efreet/ef_data_dirs.c \
tests/efreet/ef_desktop.c \
tests/efreet/ef_icon_theme.c \
tests/efreet/ef_ini.c \
tests/efreet/ef_locale.c \
tests/efreet/ef_menu.c \
tests/efreet/ef_mime.c \
tests/efreet/ef_test.h \
tests/efreet/ef_utils.c \
tests/efreet/main.c

# efreet_async_test
tests_efreet_efreet_async_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_async_test_LDADD = \
@USE_EFREET_LIBS@
tests_efreet_efreet_async_test_DEPENDENCIES = \
@USE_EFREET_INTERNAL_LIBS@

tests_efreet_efreet_async_test_SOURCES = \
tests/efreet/efreet_async_test.c

# efreet_spec_test
tests_efreet_efreet_spec_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_spec_test_LDADD = @USE_EFREET_LIBS@
tests_efreet_efreet_spec_test_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_efreet_spec_test_SOURCES = tests/efreet/efreet_spec_test.c

# efreet_cache_test
tests_efreet_efreet_cache_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_cache_test_LDADD = @USE_EFREET_LIBS@
tests_efreet_efreet_cache_test_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_efreet_cache_test_SOURCES = tests/efreet/ef_cache.c

# efreet_icon_cache_dump
tests_efreet_efreet_icon_cache_dump_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_icon_cache_dump_LDADD = @USE_EFREET_LIBS@
tests_efreet_efreet_icon_cache_dump_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_efreet_icon_cache_dump_SOURCES = tests/efreet/efreet_icon_cache_dump.c

# efreet_user_dir
tests_efreet_efreet_user_dir_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_user_dir_LDADD = @USE_EFREET_LIBS@
tests_efreet_efreet_user_dir_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_efreet_user_dir_SOURCES = tests/efreet/efreet_user_dir.c

# efreet_alloc
tests_efreet_compare_efreet_alloc_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_compare_efreet_alloc_LDADD = @USE_EFREET_LIBS@
tests_efreet_compare_efreet_alloc_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_compare_efreet_alloc_SOURCES = \
tests/efreet/compare/efreet_alloc.c \
tests/efreet/compare/comp.h

# efreet_menu_alloc
tests_efreet_compare_efreet_menu_alloc_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS)
tests_efreet_compare_efreet_menu_alloc_LDADD = @USE_EFREET_LIBS@
tests_efreet_compare_efreet_menu_alloc_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
tests_efreet_compare_efreet_menu_alloc_SOURCES = \
tests/efreet/compare/efreet_menu_alloc.c \
tests/efreet/compare/comp.h

efreettestdir = $(datadir)/efreet/test
efreettest_DATA = \
tests/efreet/data/test.ini \
tests/efreet/data/long.ini \
tests/efreet/data/test.desktop \
tests/efreet/data/test_type.desktop \
tests/efreet/data/test.menu \
tests/efreet/data/test_menu_slash_bad.menu \
tests/efreet/data/entry.png \
tests/efreet/data/entry \
tests/efreet/data/preferences.menu \
tests/efreet/data/test_garbage

efreettestsubdir = $(datadir)/efreet/test/sub
efreettestsub_DATA = \
tests/efreet/data/sub/test.desktop

check_PROGRAMS += tests/efreet/efreet_suite
# Need to run with dbus-launch - disable for now
#TESTS += tests/efreet/efreet_suite

tests_efreet_efreet_suite_SOURCES = \
tests/efreet/efreet_suite.c \
tests/efreet/efreet_suite.h \
tests/efreet/efreet_test_efreet.c \
tests/efreet/efreet_test_efreet_cache.c

tests_efreet_efreet_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl $(EFREET_COMMON_CPPFLAGS) @CHECK_CFLAGS@ \
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/efreet\"
tests_efreet_efreet_suite_LDADD = @CHECK_LIBS@ @USE_EFREET_LIBS@
tests_efreet_efreet_suite_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@

endif

EXTRA_DIST += \
tests/efreet/data/entry \
tests/efreet/data/entry.png \
tests/efreet/data/long.ini \
tests/efreet/data/preferences.menu \
tests/efreet/data/sub/Makefile.am \
tests/efreet/data/sub/test.desktop \
tests/efreet/data/test.desktop \
tests/efreet/data/test_garbage \
tests/efreet/data/test.ini \
tests/efreet/data/test.menu \
tests/efreet/data/test_menu_bad_comment.menu \
tests/efreet/data/test_menu_slash_bad.menu \
tests/efreet/data/test_type.desktop