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 \
49 -I$(top_builddir)/lib \
52 xz_LDFLAGS = $(STATIC_LDFLAGS)
53 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
56 xz_LDADD += $(top_builddir)/lib/libgnu.a
59 # libgnu.a may need these libs, so this must be after libgnu.a.
60 xz_LDADD += $(LTLIBINTL)
63 # Windows resource compiler support
65 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
66 $(xz_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
72 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also
73 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
74 xzlinks = unxz xzcat lzma unlzma lzcat
77 cd $(DESTDIR)$(bindir) && \
78 target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
79 for name in $(xzlinks); do \
80 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
82 $(LN_S) $$target $$link; \
86 cd $(DESTDIR)$(mandir)/man1 && \
87 target=`echo xz | sed '$(transform)'` && \
88 for name in $(xzlinks); do \
89 link=`echo $$name | sed '$(transform)'` && \
91 $(LN_S) $$target.1 $$link.1; \
95 cd $(DESTDIR)$(bindir) && \
96 for name in $(xzlinks); do \
97 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
100 cd $(DESTDIR)$(mandir)/man1 && \
101 for name in $(xzlinks); do \
102 link=`echo $$name | sed '$(transform)'` && \