2
EXTRA_DIST = $(srcdir)/custom-hooks.make Makefile
4
# Warning: This is an automatically generated file, do not edit!
9
include $(top_srcdir)/config.make
11
ifeq ($(CONFIG),DEBUG)
12
ASSEMBLY_COMPILER_COMMAND = gmcs
13
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:3 -optimize- -debug "-define:DEBUG"
14
ASSEMBLY = bin/Debug/Basenji.exe
15
ASSEMBLY_MDB = $(ASSEMBLY).mdb
16
COMPILE_TARGET = winexe
17
PROJECT_REFERENCES = \
18
../Platform/bin/Debug/Platform.dll \
19
../VolumeDB/bin/Debug/VolumeDB.dll
22
BASENJI_EXE_MDB_SOURCE=bin/Debug/Basenji.exe.mdb
23
BASENJI_EXE_MDB=$(BUILD_DIR)/Basenji.exe.mdb
24
LIBEXTRACTOR_DLL_CONFIG_SOURCE=LibExtractor.dll.config
25
BASENJI_EXE_CONFIG_SOURCE=Basenji.exe.config
26
PLATFORM_DLL_SOURCE=../Platform/bin/Debug/Platform.dll
27
PLATFORM_DLL_MDB_SOURCE=../Platform/bin/Debug/Platform.dll.mdb
28
PLATFORM_DLL_MDB=$(BUILD_DIR)/Platform.dll.mdb
29
VOLUMEDB_DLL_SOURCE=../VolumeDB/bin/Debug/VolumeDB.dll
30
PLATFORM_COMMON_DB_DLL_SOURCE=../Platform.Common.DB/bin/Debug/Platform.Common.DB.dll
31
PLATFORM_COMMON_DB_DLL_MDB_SOURCE=../Platform.Common.DB/bin/Debug/Platform.Common.DB.dll.mdb
32
PLATFORM_COMMON_DB_DLL_MDB=$(BUILD_DIR)/Platform.Common.DB.dll.mdb
33
LIBEXTRACTOR_DLL_SOURCE=../LibExtractor/bin/Debug/LibExtractor.dll
34
LIBEXTRACTOR_DLL_MDB_SOURCE=../LibExtractor/bin/Debug/LibExtractor.dll.mdb
35
LIBEXTRACTOR_DLL_MDB=$(BUILD_DIR)/LibExtractor.dll.mdb
36
MUSICBRAINZ_DLL_SOURCE=../MusicBrainz/bin/Debug/MusicBrainz.dll
37
MUSICBRAINZ_DLL_MDB_SOURCE=../MusicBrainz/bin/Debug/MusicBrainz.dll.mdb
38
MUSICBRAINZ_DLL_MDB=$(BUILD_DIR)/MusicBrainz.dll.mdb
39
VOLUMEDB_DLL_MDB_SOURCE=../VolumeDB/bin/Debug/VolumeDB.dll.mdb
40
VOLUMEDB_DLL_MDB=$(BUILD_DIR)/VolumeDB.dll.mdb
44
ifeq ($(CONFIG),RELEASE)
45
ASSEMBLY_COMPILER_COMMAND = gmcs
46
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:3 -optimize+
47
ASSEMBLY = bin/Release/Basenji.exe
49
COMPILE_TARGET = winexe
50
PROJECT_REFERENCES = \
51
../Platform/bin/Release/Platform.dll \
52
../VolumeDB/bin/Release/VolumeDB.dll
53
BUILD_DIR = bin/Release
56
LIBEXTRACTOR_DLL_CONFIG_SOURCE=LibExtractor.dll.config
57
BASENJI_EXE_CONFIG_SOURCE=Basenji.exe.config
58
PLATFORM_DLL_SOURCE=../Platform/bin/Release/Platform.dll
60
VOLUMEDB_DLL_SOURCE=../VolumeDB/bin/Release/VolumeDB.dll
61
PLATFORM_COMMON_DB_DLL_SOURCE=../Platform.Common.DB/bin/Release/Platform.Common.DB.dll
62
PLATFORM_COMMON_DB_DLL_MDB=
63
LIBEXTRACTOR_DLL_SOURCE=../LibExtractor/bin/Release/LibExtractor.dll
65
MUSICBRAINZ_DLL_SOURCE=../MusicBrainz/bin/Release/MusicBrainz.dll
71
ifeq ($(CONFIG),GNOME_DEBUG)
72
ASSEMBLY_COMPILER_COMMAND = gmcs
73
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:3 -optimize- -debug "-define:DEBUG"
74
ASSEMBLY = bin/Debug/Basenji.exe
75
ASSEMBLY_MDB = $(ASSEMBLY).mdb
76
COMPILE_TARGET = winexe
77
PROJECT_REFERENCES = \
78
../Platform/bin/Debug/Platform.dll \
79
../VolumeDB/bin/Debug/VolumeDB.dll
82
BASENJI_EXE_MDB_SOURCE=bin/Debug/Basenji.exe.mdb
83
BASENJI_EXE_MDB=$(BUILD_DIR)/Basenji.exe.mdb
84
LIBEXTRACTOR_DLL_CONFIG_SOURCE=LibExtractor.dll.config
85
BASENJI_EXE_CONFIG_SOURCE=Basenji.exe.config
86
PLATFORM_DLL_SOURCE=../Platform/bin/Debug/Platform.dll
87
PLATFORM_DLL_MDB_SOURCE=../Platform/bin/Debug/Platform.dll.mdb
88
PLATFORM_DLL_MDB=$(BUILD_DIR)/Platform.dll.mdb
89
VOLUMEDB_DLL_SOURCE=../VolumeDB/bin/Debug/VolumeDB.dll
90
PLATFORM_COMMON_DB_DLL_SOURCE=../Platform.Common.DB/bin/Debug/Platform.Common.DB.dll
91
PLATFORM_COMMON_DB_DLL_MDB_SOURCE=../Platform.Common.DB/bin/Debug/Platform.Common.DB.dll.mdb
92
PLATFORM_COMMON_DB_DLL_MDB=$(BUILD_DIR)/Platform.Common.DB.dll.mdb
93
LIBEXTRACTOR_DLL_SOURCE=../LibExtractor/bin/Debug/LibExtractor.dll
94
LIBEXTRACTOR_DLL_MDB_SOURCE=../LibExtractor/bin/Debug/LibExtractor.dll.mdb
95
LIBEXTRACTOR_DLL_MDB=$(BUILD_DIR)/LibExtractor.dll.mdb
96
MUSICBRAINZ_DLL_SOURCE=../MusicBrainz/bin/Debug/MusicBrainz.dll
97
MUSICBRAINZ_DLL_MDB_SOURCE=../MusicBrainz/bin/Debug/MusicBrainz.dll.mdb
98
MUSICBRAINZ_DLL_MDB=$(BUILD_DIR)/MusicBrainz.dll.mdb
99
VOLUMEDB_DLL_MDB_SOURCE=../VolumeDB/bin/Debug/VolumeDB.dll.mdb
100
VOLUMEDB_DLL_MDB=$(BUILD_DIR)/VolumeDB.dll.mdb
104
ifeq ($(CONFIG),GNOME_RELEASE)
105
ASSEMBLY_COMPILER_COMMAND = gmcs
106
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:3 -optimize+
107
ASSEMBLY = bin/Release/Basenji.exe
109
COMPILE_TARGET = winexe
110
PROJECT_REFERENCES = \
111
../Platform/bin/Release/Platform.dll \
112
../VolumeDB/bin/Release/VolumeDB.dll
113
BUILD_DIR = bin/Release
116
LIBEXTRACTOR_DLL_CONFIG_SOURCE=LibExtractor.dll.config
117
BASENJI_EXE_CONFIG_SOURCE=Basenji.exe.config
118
PLATFORM_DLL_SOURCE=../Platform/bin/Release/Platform.dll
120
VOLUMEDB_DLL_SOURCE=../VolumeDB/bin/Release/VolumeDB.dll
121
PLATFORM_COMMON_DB_DLL_SOURCE=../Platform.Common.DB/bin/Release/Platform.Common.DB.dll
122
PLATFORM_COMMON_DB_DLL_MDB=
123
LIBEXTRACTOR_DLL_SOURCE=../LibExtractor/bin/Release/LibExtractor.dll
124
LIBEXTRACTOR_DLL_MDB=
125
MUSICBRAINZ_DLL_SOURCE=../MusicBrainz/bin/Release/MusicBrainz.dll
132
SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
136
$(LIBEXTRACTOR_DLL_CONFIG) \
137
$(BASENJI_EXE_CONFIG) \
139
$(PLATFORM_DLL_MDB) \
141
$(PLATFORM_COMMON_DB_DLL) \
142
$(PLATFORM_COMMON_DB_DLL_MDB) \
143
$(LIBEXTRACTOR_DLL) \
144
$(LIBEXTRACTOR_DLL_MDB) \
146
$(MUSICBRAINZ_DLL_MDB) \
149
LINUX_DESKTOPAPPLICATIONS = \
158
BASENJI_DESKTOP = $(BUILD_DIR)/basenji.desktop
159
BASENJI = $(BUILD_DIR)/basenji
160
LIBEXTRACTOR_DLL_CONFIG = $(BUILD_DIR)/LibExtractor.dll.config
161
BASENJI_EXE_CONFIG = $(BUILD_DIR)/Basenji.exe.config
162
PLATFORM_DLL = $(BUILD_DIR)/Platform.dll
163
VOLUMEDB_DLL = $(BUILD_DIR)/VolumeDB.dll
164
PLATFORM_COMMON_DB_DLL = $(BUILD_DIR)/Platform.Common.DB.dll
165
LIBEXTRACTOR_DLL = $(BUILD_DIR)/LibExtractor.dll
166
MUSICBRAINZ_DLL = $(BUILD_DIR)/MusicBrainz.dll
170
src/Gui/DBProperties.cs \
171
src/Gui/DriveSelection.cs \
173
src/Gui/ItemSearch.cs \
174
src/Gui/MainWindow.cs \
175
src/Gui/Preferences.cs \
176
src/Gui/VolumeProperties.cs \
177
src/Gui/VolumeScanner.cs \
178
src/Gui/Base/BinBase.cs \
179
src/Gui/Base/DialogBase.cs \
180
src/Gui/Base/ViewBase.cs \
181
src/Gui/Base/WindowBase.cs \
182
src/Gui/Widgets/DateChooser.cs \
183
src/Gui/Widgets/ItemInfo.cs \
184
src/Gui/Widgets/ItemView.cs \
185
src/Gui/Widgets/Led.cs \
186
src/Gui/Widgets/SearchResultView.cs \
187
src/Gui/Widgets/VolumeView.cs \
188
src/Icons/CustomIconTheme.cs \
190
src/Icons/IconCache.cs \
191
src/Icons/IconUtils.cs \
192
src/Icons/ItemIcons.cs \
193
src/Icons/MimeIconCache.cs \
194
src/Icons/NameInCustomIconThemeAttribute.cs \
196
src/AssemblyInfo.cs \
204
src/Gui/Widgets/CategoryView.cs \
205
src/Gui/Widgets/PageNavigation.cs \
206
src/Gui/Widgets/PageNavigationEvents.cs \
207
src/Gui/Widgets/IconEntry.cs \
208
src/Gui/Widgets/SearchEntry.cs \
209
src/Gui/Widgets/ItemPreview.cs \
211
src/Icons/CustomIconThemeMimeMapping.cs \
212
src/MimeCategoryMapping.cs \
213
src/Gui/ItemProperties.cs \
214
src/Gui/ObjectProperties.cs \
215
src/Gui/Widgets/Editors/AudioCdVolumeEditor.cs \
216
src/Gui/Widgets/Editors/AudioTrackItemEditor.cs \
217
src/Gui/Widgets/Editors/FileSystemItemEditor.cs \
218
src/Gui/Widgets/Editors/FileSystemVolumeEditor.cs \
219
src/Gui/Widgets/Editors/ItemEditor.cs \
220
src/Gui/Widgets/Editors/ObjectEditor.cs \
221
src/Gui/Widgets/Editors/ObjectEditorEvents.cs \
222
src/Gui/Widgets/Editors/ObjectEditorExceptions.cs \
223
src/Gui/Widgets/Editors/VolumeEditor.cs \
224
src/Gui/Widgets/Editors/FileItemEditor.cs \
225
src/Gui/Widgets/Editors/DirectoryItemEditor.cs \
226
src/Gui/Widgets/Sorting.cs \
233
images/LED_Off.png,Basenji.images.LED_Off.png \
234
images/LED_On.png,Basenji.images.LED_On.png \
235
po/de.resources,Basenji.po.de.resources \
236
po/he.resources,Basenji.po.he.resources \
237
po/da.resources,Basenji.po.da.resources \
238
po/es.resources,Basenji.po.es.resources \
239
po/fr.resources,Basenji.po.fr.resources \
240
po/ru.resources,Basenji.po.ru.resources \
241
po/bg.resources,Basenji.po.bg.resources \
242
po/it.resources,Basenji.po.it.resources \
243
po/oc.resources,Basenji.po.oc.resources \
244
po/pt_BR.resources,Basenji.po.pt_BR.resources \
245
po/tr.resources,Basenji.po.tr.resources \
246
images/calendar.png,Basenji.images.calendar.png \
247
po/pl.resources,Basenji.po.pl.resources \
248
po/hu.resources,Basenji.po.hu.resources \
249
po/et.resources,Basenji.po.et.resources \
250
po/uk.resources,Basenji.po.uk.resources \
251
po/zh_CN.resources,Basenji.po.zh_CN.resources \
252
po/sr.resources,Basenji.po.sr.resources \
253
po/hr.resources,Basenji.po.hr.resources \
254
po/nl.resources,Basenji.po.nl.resources \
255
po/cs.resources,Basenji.po.cs.resources
260
LibExtractor.dll.config \
269
-pkg:glib-sharp-2.0 \
275
CLEANFILES = $(PROGRAMFILES) $(LINUX_DESKTOPAPPLICATIONS) $(BINARIES)
278
all: $(ASSEMBLY) $(PROGRAMFILES) $(LINUX_DESKTOPAPPLICATIONS) $(BINARIES) $(top_srcdir)/config.make
280
include $(top_srcdir)/Makefile.include
281
include $(srcdir)/custom-hooks.make
285
$(eval $(call emit-deploy-wrapper,BASENJI_DESKTOP,basenji.desktop))
286
$(eval $(call emit-deploy-wrapper,BASENJI,basenji))
287
$(eval $(call emit-deploy-target,LIBEXTRACTOR_DLL_CONFIG))
288
$(eval $(call emit-deploy-target,BASENJI_EXE_CONFIG))
289
$(eval $(call emit-deploy-target,PLATFORM_DLL))
290
$(eval $(call emit-deploy-target,PLATFORM_DLL_MDB))
291
$(eval $(call emit-deploy-target,VOLUMEDB_DLL))
292
$(eval $(call emit-deploy-target,PLATFORM_COMMON_DB_DLL))
293
$(eval $(call emit-deploy-target,PLATFORM_COMMON_DB_DLL_MDB))
294
$(eval $(call emit-deploy-target,LIBEXTRACTOR_DLL))
295
$(eval $(call emit-deploy-target,LIBEXTRACTOR_DLL_MDB))
296
$(eval $(call emit-deploy-target,MUSICBRAINZ_DLL))
297
$(eval $(call emit-deploy-target,MUSICBRAINZ_DLL_MDB))
298
$(eval $(call emit-deploy-target,VOLUMEDB_DLL_MDB))
301
$(eval $(call emit_resgen_targets))
302
$(build_xamlg_list): %.xaml.g.cs: %.xaml
305
# Targets for Custom commands
307
(cd $(srcdir) && ./custom_build_commands.sh --after-build $(BUILD_DIR))
310
(cd $(srcdir) && ./custom_build_commands.sh --after-clean $(BUILD_DIR))
313
(cd $(srcdir) && ./custom_build_commands.sh --after-build $(BUILD_DIR))
316
(cd $(srcdir) && ./custom_build_commands.sh --after-clean $(BUILD_DIR))
318
GNOME_DEBUG_AfterBuild:
319
(cd $(srcdir) && ./custom_build_commands.sh --after-build $(BUILD_DIR))
321
GNOME_DEBUG_AfterClean:
322
(cd $(srcdir) && ./custom_build_commands.sh --after-clean $(BUILD_DIR))
324
GNOME_RELEASE_AfterBuild:
325
(cd $(srcdir) && ./custom_build_commands.sh --after-build $(BUILD_DIR))
327
GNOME_RELEASE_AfterClean:
328
(cd $(srcdir) && ./custom_build_commands.sh --after-clean $(BUILD_DIR))
331
$(ASSEMBLY_MDB): $(ASSEMBLY)
332
$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
333
make pre-all-local-hook prefix=$(prefix)
334
mkdir -p $(shell dirname $(ASSEMBLY))
335
make $(CONFIG)_BeforeBuild
336
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
337
make $(CONFIG)_AfterBuild
338
make post-all-local-hook prefix=$(prefix)
340
install-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
341
make pre-install-local-hook prefix=$(prefix)
342
make install-satellite-assemblies prefix=$(prefix)
343
mkdir -p '$(DESTDIR)$(libdir)/$(PACKAGE)'
344
$(call cp,$(ASSEMBLY),$(DESTDIR)$(libdir)/$(PACKAGE))
345
$(call cp,$(ASSEMBLY_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
346
$(call cp,$(BASENJI_EXE_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
347
mkdir -p '$(DESTDIR)$(datadir)/applications'
348
$(call cp,$(BASENJI_DESKTOP),$(DESTDIR)$(datadir)/applications)
349
mkdir -p '$(DESTDIR)$(bindir)'
350
$(call cp,$(BASENJI),$(DESTDIR)$(bindir))
351
$(call cp,$(LIBEXTRACTOR_DLL_CONFIG),$(DESTDIR)$(libdir)/$(PACKAGE))
352
$(call cp,$(BASENJI_EXE_CONFIG),$(DESTDIR)$(libdir)/$(PACKAGE))
353
$(call cp,$(PLATFORM_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
354
$(call cp,$(PLATFORM_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
355
$(call cp,$(VOLUMEDB_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
356
$(call cp,$(PLATFORM_COMMON_DB_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
357
$(call cp,$(PLATFORM_COMMON_DB_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
358
$(call cp,$(LIBEXTRACTOR_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
359
$(call cp,$(LIBEXTRACTOR_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
360
$(call cp,$(MUSICBRAINZ_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
361
$(call cp,$(MUSICBRAINZ_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
362
$(call cp,$(VOLUMEDB_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
363
make post-install-local-hook prefix=$(prefix)
365
uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
366
make pre-uninstall-local-hook prefix=$(prefix)
367
make uninstall-satellite-assemblies prefix=$(prefix)
368
$(call rm,$(ASSEMBLY),$(DESTDIR)$(libdir)/$(PACKAGE))
369
$(call rm,$(ASSEMBLY_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
370
$(call rm,$(BASENJI_EXE_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
371
$(call rm,$(BASENJI_DESKTOP),$(DESTDIR)$(datadir)/applications)
372
$(call rm,$(BASENJI),$(DESTDIR)$(bindir))
373
$(call rm,$(LIBEXTRACTOR_DLL_CONFIG),$(DESTDIR)$(libdir)/$(PACKAGE))
374
$(call rm,$(BASENJI_EXE_CONFIG),$(DESTDIR)$(libdir)/$(PACKAGE))
375
$(call rm,$(PLATFORM_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
376
$(call rm,$(PLATFORM_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
377
$(call rm,$(VOLUMEDB_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
378
$(call rm,$(PLATFORM_COMMON_DB_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
379
$(call rm,$(PLATFORM_COMMON_DB_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
380
$(call rm,$(LIBEXTRACTOR_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
381
$(call rm,$(LIBEXTRACTOR_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
382
$(call rm,$(MUSICBRAINZ_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
383
$(call rm,$(MUSICBRAINZ_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
384
$(call rm,$(VOLUMEDB_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
385
make post-uninstall-local-hook prefix=$(prefix)
387
install: install-local
388
uninstall: uninstall-local
391
include $(top_srcdir)/rules.make