aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2012-02-18 03:33:49 -0800
committerAvuton Olrich <avuton@gmail.com>2012-02-23 06:32:30 -0800
commit07429761382dc2dfc277bacf8b897a0d51402ab8 (patch)
tree83f95e10f68b539b6e0858e799843306431919d8 /Makefile.am
parent1a63663c85b7e043c75310d8cc11e61c85087724 (diff)
downloadmpd-07429761382dc2dfc277bacf8b897a0d51402ab8.tar.gz
mpd-07429761382dc2dfc277bacf8b897a0d51402ab8.tar.xz
mpd-07429761382dc2dfc277bacf8b897a0d51402ab8.zip
win32: Add a Windows OS resource file and icon
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index a78d1b4bc..4f9a30780 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -353,6 +353,20 @@ src_mpd_SOURCES = \
src/stored_playlist.c \
src/timer.c
+#
+# Windows resource file
+#
+
+src/win/mpd_win32_rc.$(OBJEXT): src/win/mpd_win32_rc.rc
+ $(WINDRES) -i $< -o $@
+
+if HAVE_WINDOWS
+noinst_DATA = src/win/mpd_win32_rc.rc
+
+src_mpd_DEPENDENCIES = src/win/mpd_win32_rc.$(OBJEXT)
+src_mpd_LDFLAGS = -Wl,src/win/mpd_win32_rc.$(OBJEXT)
+endif
+
if ENABLE_DESPOTIFY
src_mpd_SOURCES += \
src/despotify_utils.c
@@ -1309,4 +1323,5 @@ endif
EXTRA_DIST = $(doc_DATA) autogen.sh \
$(wildcard scripts/*.sh) \
- $(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf
+ $(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf \
+ src/win/mpd_win32_rc.rc.in