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
40 xz_SOURCES += xz_w32res.rc
44 -DLOCALEDIR=\"$(localedir)\" \
45 -I$(top_srcdir)/src/common \
46 -I$(top_srcdir)/src/liblzma/api \
47 -I$(top_builddir)/lib \
50 xz_LDFLAGS = $(STATIC_LDFLAGS)
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.
72 xzlinks = unxz xzcat lzma unlzma lzcat
75 cd $(DESTDIR)$(bindir) && \
76 target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
77 for name in $(xzlinks); do \
78 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
80 $(LN_S) $$target $$link; \
84 cd $(DESTDIR)$(mandir)/man1 && \
85 target=`echo xz | sed '$(transform)'` && \
86 for name in $(xzlinks); do \
87 link=`echo $$name | sed '$(transform)'` && \
89 $(LN_S) $$target.1 $$link.1; \
93 cd $(DESTDIR)$(bindir) && \
94 for name in $(xzlinks); do \
95 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
98 cd $(DESTDIR)$(mandir)/man1 && \
99 for name in $(xzlinks); do \
100 link=`echo $$name | sed '$(transform)'` && \