]> icculus.org git repositories - icculus/xz.git/blob - src/lzma/Makefile.am
Imported to git.
[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         alloc.c \
19         alloc.h \
20         args.c \
21         args.h \
22         error.c \
23         error.h \
24         hardware.c \
25         hardware.h \
26         help.c \
27         help.h \
28         io.c \
29         io.h \
30         main.c \
31         options.c \
32         options.h \
33         private.h \
34         process.c \
35         process.h \
36         suffix.c \
37         suffix.h \
38         util.c \
39         util.h
40
41 ## It must be able to find sysdefs.h, lzma_adv.h, and possible
42 ## replacement headers.
43 lzma_CPPFLAGS = \
44         -DLOCALEDIR=\"$(localedir)\" \
45         -I@top_srcdir@/src/common \
46         -I@top_srcdir@/src/liblzma/api \
47         -I@top_builddir@/lib \
48         -I@top_srcdir@/lib
49
50 lzma_CFLAGS = @PTHREAD_CFLAGS@
51
52 ## Always link the command line tool statically against liblzma. It is
53 ## faster on x86, because no need for PIC. We also have one dependency less,
54 ## which allows users to more freely copy the lzma binary to other boxes.
55 lzma_LDFLAGS = -static
56 lzma_LDADD = \
57         @top_builddir@/src/liblzma/liblzma.la \
58         @LTLIBINTL@ \
59         @PTHREAD_LIBS@
60
61 if COND_GNULIB
62 lzma_LDADD += @top_builddir@/lib/libgnu_nls.a
63 endif