2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
34 $(top_srcdir)/src/common/tuklib_open_stdxxx.c \
35 $(top_srcdir)/src/common/tuklib_progname.c \
36 $(top_srcdir)/src/common/tuklib_exit.c \
37 $(top_srcdir)/src/common/tuklib_cpucores.c \
38 $(top_srcdir)/src/common/tuklib_mbstr_width.c \
39 $(top_srcdir)/src/common/tuklib_mbstr_fw.c
42 xz_SOURCES += xz_w32res.rc
46 -DLOCALEDIR=\"$(localedir)\" \
47 -I$(top_srcdir)/src/common \
48 -I$(top_srcdir)/src/liblzma/api \
51 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
54 xz_LDADD += $(top_builddir)/lib/libgnu.a
57 # libgnu.a may need these libs, so this must be after libgnu.a.
58 xz_LDADD += $(LTLIBINTL)
61 # Windows resource compiler support
63 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64 $(xz_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
70 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also
71 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
75 xzlinks += lzma unlzma lzcat
79 cd $(DESTDIR)$(bindir) && \
80 target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
81 for name in $(xzlinks); do \
82 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
84 $(LN_S) $$target $$link; \
88 cd $(DESTDIR)$(mandir)/man1 && \
89 target=`echo xz | sed '$(transform)'` && \
90 for name in $(xzlinks); do \
91 link=`echo $$name | sed '$(transform)'` && \
93 $(LN_S) $$target.1 $$link.1; \
97 cd $(DESTDIR)$(bindir) && \
98 for name in $(xzlinks); do \
99 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
102 cd $(DESTDIR)$(mandir)/man1 && \
103 for name in $(xzlinks); do \
104 link=`echo $$name | sed '$(transform)'` && \