2 ## Copyright (C) 2007 Lasse Collin
4 ## This program is free software; you can redistribute it and/or
5 ## modify it under the terms of the GNU Lesser General Public
6 ## License as published by the Free Software Foundation; either
7 ## version 2.1 of the License, or (at your option) any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ## Lesser General Public License for more details.
41 -DLOCALEDIR=\"$(localedir)\" \
42 -I@top_srcdir@/src/common \
43 -I@top_srcdir@/src/liblzma/api \
44 -I@top_builddir@/lib \
47 ## Always link the command line tool statically against liblzma. It is
48 ## faster on x86, because no need for PIC. We also have one dependency less,
49 ## which allows users to more freely copy the xz binary to other boxes.
52 @top_builddir@/src/liblzma/liblzma.la \
56 xz_LDADD += @top_builddir@/lib/libgnu.a
60 ## Create symlinks for unxz and xzcat for convenicen. Create symlinks also
61 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
63 cd $(DESTDIR)$(bindir) && \
64 rm -f unxz xzcat lzma unlzma lzcat && \
68 $(LN_S) xz unlzma && \
72 cd $(DESTDIR)$(bindir) && \
73 rm -f unxz xzcat lzma unlzma lzcat