diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2007-12-09 00:42:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2007-12-09 00:42:33 +0200 |
commit | 5d018dc03549c1ee4958364712fb0c94e1bf2741 (patch) | |
tree | 1b211911fb33fddb3f04b77f99e81df23623ffc4 /lib/Makefile.am | |
download | xz-5d018dc03549c1ee4958364712fb0c94e1bf2741.tar.xz |
Imported to git.
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am new file mode 100644 index 00000000..46e3a4a9 --- /dev/null +++ b/lib/Makefile.am @@ -0,0 +1,40 @@ +## +## Copyright (C) 2004-2007 Free Software Foundation, Inc. +## Copyright (C) 2007 Lasse Collin +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + +## Not using gnulib-tool, at least for now. Less mess this way. + +## We need two builds of libgnu: one with NLS and one without. +## This is because lzma uses NLS but lzmadec doesn't, while +## both need GNU getopt_long(). +noinst_LIBRARIES = libgnu.a libgnu_nls.a + +libgnu_a_SOURCES = +libgnu_a_DEPENDENCIES = $(LIBOBJS) +libgnu_a_LIBADD = $(LIBOBJS) +libgnu_a_CPPFLAGS = -DDISABLE_NLS=1 + +libgnu_nls_a_SOURCES = +libgnu_nls_a_DEPENDENCIES = $(LIBOBJS) +libgnu_nls_a_LIBADD = $(LIBOBJS) + +EXTRA_DIST = gettext.h getopt_.h getopt.c getopt1.c getopt_int.h +BUILT_SOURCES = $(GETOPT_H) +MOSTLYCLEANFILES = getopt.h getopt.h-t + +getopt.h: getopt_.h + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/getopt_.h; \ + } > $@-t + mv -f $@-t $@ |