aboutsummaryrefslogtreecommitdiff
path: root/src/lzmainfo/Makefile.am
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-10-09 13:02:15 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-10-09 13:02:15 +0300
commitefeb998a2b1025df1c1d202cc7d21d866cd1c336 (patch)
tree12395307e0e07026715255d60a9293ea20acd4dd /src/lzmainfo/Makefile.am
parentAdd missing public domain notice to lzmadec_w32res.rc. (diff)
downloadxz-efeb998a2b1025df1c1d202cc7d21d866cd1c336.tar.xz
lzmainfo: Add Windows resource file.
Diffstat (limited to '')
-rw-r--r--src/lzmainfo/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lzmainfo/Makefile.am b/src/lzmainfo/Makefile.am
index 3e18c5fb..b90b3b3d 100644
--- a/src/lzmainfo/Makefile.am
+++ b/src/lzmainfo/Makefile.am
@@ -12,6 +12,10 @@ lzmainfo_SOURCES = \
$(top_srcdir)/src/common/tuklib_progname.c \
$(top_srcdir)/src/common/tuklib_exit.c
+if COND_W32
+lzmainfo_SOURCES += lzmainfo_w32res.rc
+endif
+
lzmainfo_CPPFLAGS = \
-DLOCALEDIR=\"$(localedir)\" \
-I$(top_srcdir)/src/common \
@@ -28,3 +32,8 @@ lzmainfo_LDADD += $(LTLIBINTL)
dist_man_MANS = lzmainfo.1
+
+# Windows resource compiler support
+.rc.o:
+ $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(lzmainfo_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@