]> icculus.org git repositories - icculus/xz.git/blob - src/lzma/Makefile.am
Oh well, big messy commit again. Some highlights:
[icculus/xz.git] / src / lzma / Makefile.am
1 ##
2 ##  Copyright (C) 2007 Lasse Collin
3 ##
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.
8 ##
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.
13 ##
14
15 bin_PROGRAMS = lzma
16
17 lzma_SOURCES = \
18         args.c \
19         args.h \
20         hardware.c \
21         hardware.h \
22         io.c \
23         io.h \
24         main.c \
25         main.h \
26         message.c \
27         message.h \
28         options.c \
29         options.h \
30         private.h \
31         process.c \
32         process.h \
33         suffix.c \
34         suffix.h \
35         util.c \
36         util.h
37
38 ## It must be able to find sysdefs.h, lzma_adv.h, and possible
39 ## replacement headers.
40 lzma_CPPFLAGS = \
41         -DLOCALEDIR=\"$(localedir)\" \
42         -I@top_srcdir@/src/common \
43         -I@top_srcdir@/src/liblzma/api \
44         -I@top_builddir@/lib \
45         -I@top_srcdir@/lib
46
47 lzma_CFLAGS = @PTHREAD_CFLAGS@
48
49 ## Always link the command line tool statically against liblzma. It is
50 ## faster on x86, because no need for PIC. We also have one dependency less,
51 ## which allows users to more freely copy the lzma binary to other boxes.
52 lzma_LDFLAGS = -static
53 lzma_LDADD = \
54         @top_builddir@/src/liblzma/liblzma.la \
55         @LTLIBINTL@ \
56         @PTHREAD_LIBS@
57
58 if COND_GNULIB
59 lzma_LDADD += @top_builddir@/lib/libgnu.a
60 endif
61
62
63 ## Create symlinks for unlzma and lzcat:
64 install-exec-hook:
65         cd $(DESTDIR)$(bindir) && \
66         rm -f unlzma lzcat && \
67         $(LN_S) lzma unlzma && \
68         $(LN_S) lzma lzcat
69
70 uninstall-hook:
71         cd $(DESTDIR)$(bindir) && \
72         rm -f unlzma lzcat