2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
8 # Windows resource compiler support. It's fine to use xz_CPPFLAGS
11 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
12 $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
17 $(top_srcdir)/src/common/tuklib_progname.c \
18 $(top_srcdir)/src/common/tuklib_exit.c
21 xzdec_SOURCES += xzdec_w32res.rc
26 -I$(top_srcdir)/src/common \
27 -I$(top_srcdir)/src/liblzma/api \
29 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la
32 xzdec_LDADD += $(top_builddir)/lib/libgnu.a
35 xzdec_LDADD += $(LTLIBINTL)
40 $(top_srcdir)/src/common/tuklib_progname.c \
41 $(top_srcdir)/src/common/tuklib_exit.c
44 lzmadec_SOURCES += lzmadec_w32res.rc
47 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
48 lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
49 lzmadec_LDADD = $(xzdec_LDADD)
56 dist_man_MANS = xzdec.1
60 bin_PROGRAMS += lzmadec
62 # FIXME: If xzdec is disabled, this will create a dangling symlink.
64 cd $(DESTDIR)$(mandir)/man1 && \
65 target=`echo xzdec | sed '$(transform)'` && \
66 link=`echo lzmadec | sed '$(transform)'` && \
68 $(LN_S) $$target.1 $$link.1
71 cd $(DESTDIR)$(mandir)/man1 && \
72 link=`echo lzmadec | sed '$(transform)'` && \