X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FMakefile.am;h=ad754ec79188cab1d5d085694972e622c4f63868;hb=4cb984dac2d2acc60cfbde042c72b9dcafd40177;hp=df8ce06375dc56113d4db9727542a98f896a3467;hpb=056d156a13e4e351a5a25d698e91b69a62b068f2;p=gnulib.git diff --git a/lib/Makefile.am b/lib/Makefile.am index df8ce0637..ad754ec79 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,4 +1,22 @@ -## Process this file with automake to produce Makefile.in -*-Makefile-*- +## Makefile for gnulib/lib -*-Makefile-*- + +# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 +# Free Software Foundation, Inc. + +## 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, 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. + +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +## 02111-1307, USA. AUTOMAKE_OPTIONS = ../src/ansi2knr @@ -35,6 +53,7 @@ libfetish_a_SOURCES = \ dirfd.h \ dup-safer.c \ exclude.c exclude.h \ + exitfail.c exitfail.h \ filemode.c filemode.h \ file-type.c file-type.h \ fnmatch_.h \ @@ -43,7 +62,6 @@ libfetish_a_SOURCES = \ full-write.c full-write.h \ getline.h \ getpagesize.h \ - getstr.c getstr.h \ gettime.c \ gettext.h \ getugroups.c \ @@ -75,6 +93,7 @@ libfetish_a_SOURCES = \ same.c same.h \ save-cwd.c save-cwd.h \ savedir.c savedir.h \ + setenv.c unsetenv.c setenv.h \ settime.c \ sha.c sha.h \ sig2str.h \ @@ -84,6 +103,7 @@ libfetish_a_SOURCES = \ timespec.h \ unicodeio.c unicodeio.h \ unistd-safer.h \ + unlocked-io.h \ userspec.c \ version-etc.c version-etc.h \ xalloc.h \ @@ -104,31 +124,12 @@ libfetish_a_LIBADD = @LIBOBJS@ @ALLOCA@ libfetish_a_DEPENDENCIES = $(libfetish_a_LIBADD) -BUILT_SOURCES = getdate.c lstat.c stat.c unlocked-io.h +BUILT_SOURCES = getdate.c MAINTAINERCLEANFILES = $(BUILT_SOURCES) -DISTCLEANFILES = lstat.c stat.c unlocked-io.h -EXTRA_DIST = xstat.in config.charset ref-add.sin ref-del.sin gen-uio \ +EXTRA_DIST = config.charset ref-add.sin ref-del.sin \ fnmatch_loop.c -lstat.c: xstat.in - sed \ - -e '/@IGNORE@/d' \ - -e 's/@xstat@/lstat/g' \ - -e '/_LSTAT_ONLY@/d' \ - -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \ - $(srcdir)/xstat.in > t-$@ - mv t-$@ $@ - -stat.c: xstat.in - sed \ - -e '/@IGNORE@/d' \ - -e 's/@xstat@/stat/g' \ - -e '/_STAT_ONLY@/d' \ - -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \ - $(srcdir)/xstat.in > t-$@ - mv t-$@ $@ - # The following is needed in order to install a simple file in $(libdir) # which is shared with other installed packages. We use a list of referencing # packages so that "make uninstall" will remove the file if and only if it @@ -136,7 +137,7 @@ stat.c: xstat.in # On systems with glibc-2.1 or newer, the file is redundant, therefore we # avoid installing it. -all-local: charset.alias ref-add.sed ref-del.sed lstat.c stat.c unlocked-io.h +all-local: charset.alias ref-add.sed ref-del.sed charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp @@ -176,21 +177,3 @@ SUFFIXES = .sed .sin mv t-$@ $@ CLEANFILES = charset.alias ref-add.sed ref-del.sed - -############################################### - -# FIXME: remove this dependency once automake handles it. -# As of cvs automake of about 2002-01-13, -# this dependency is necessary to avoid a build failure -# when running `make check' before running `make all'. -# Otherwise, unlocked-io.h is not built before it's needed. -getdate$U.o: unlocked-io.h - -# FIXME: CAUTION this list is a duplicate of one in ../Makefile.cfg. -io_functions = \ - clearerr feof ferror fflush fgets fputc fputs \ - fread fwrite getc getchar putc putchar - -unlocked-io.h: $(srcdir)/gen-uio Makefile.am - srcdir=$(srcdir) $(SHELL) $(srcdir)/gen-uio $(io_functions) > $@t - mv $@t $@