]> icculus.org git repositories - icculus/xz.git/blob - src/xzdec/Makefile.am
Make it easy to choose if command line tools should be
[icculus/xz.git] / src / xzdec / 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 = xzdec lzmadec
16
17 xzdec_SOURCES = xzdec.c
18 xzdec_CPPFLAGS = \
19         -I@top_srcdir@/src/common \
20         -I@top_srcdir@/src/liblzma/api \
21         -I@top_builddir@/lib \
22         @STATIC_CPPFLAGS@
23 xzdec_LDFLAGS = @STATIC_LDFLAGS@
24 xzdec_LDADD = \
25         @top_builddir@/src/liblzma/liblzma.la \
26         @LTLIBINTL@
27
28 if COND_GNULIB
29 xzdec_LDADD += @top_builddir@/lib/libgnu.a
30 endif
31
32 lzmadec_SOURCES = $(xzdec_SOURCES)
33 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
34 lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
35 lzmadec_LDADD = $(xzdec_LDADD)