]> icculus.org git repositories - icculus/xz.git/blob - lib/Makefile.am
Imported to git.
[icculus/xz.git] / lib / Makefile.am
1 ##
2 ##  Copyright (C) 2004-2007 Free Software Foundation, Inc.
3 ##  Copyright (C) 2007 Lasse Collin
4 ##
5 ##  This program is free software; you can redistribute it and/or modify
6 ##  it under the terms of the GNU General Public License as published by
7 ##  the Free Software Foundation; either version 2 of the License, or
8 ##  (at your option) any later version.
9 ##
10 ##  This program is distributed in the hope that it will be useful,
11 ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ##  GNU General Public License for more details.
14 ##
15
16 ## Not using gnulib-tool, at least for now. Less mess this way.
17
18 ## We need two builds of libgnu: one with NLS and one without.
19 ## This is because lzma uses NLS but lzmadec doesn't, while
20 ## both need GNU getopt_long().
21 noinst_LIBRARIES = libgnu.a libgnu_nls.a
22
23 libgnu_a_SOURCES =
24 libgnu_a_DEPENDENCIES = $(LIBOBJS)
25 libgnu_a_LIBADD = $(LIBOBJS)
26 libgnu_a_CPPFLAGS = -DDISABLE_NLS=1
27
28 libgnu_nls_a_SOURCES =
29 libgnu_nls_a_DEPENDENCIES = $(LIBOBJS)
30 libgnu_nls_a_LIBADD = $(LIBOBJS)
31
32 EXTRA_DIST = gettext.h getopt_.h getopt.c getopt1.c getopt_int.h
33 BUILT_SOURCES = $(GETOPT_H)
34 MOSTLYCLEANFILES = getopt.h getopt.h-t
35
36 getopt.h: getopt_.h
37         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
38           cat $(srcdir)/getopt_.h; \
39         } > $@-t
40         mv -f $@-t $@