1 # Makefile for GNU tar library.
2 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
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
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 AUTOMAKE_OPTIONS = gnits
21 noinst_LIBRARIES = libtar.a
24 alloca.c fileblocks.c fnmatch.c ftruncate.c execlp.c gmalloc.c \
25 memset.c mkdir.c modechange.h rename.c rmdir.c stpcpy.c strstr.c
28 argmatch.h backupfile.h error.h fnmatch.h getopt.h getdate.h getpagesize.h \
32 argmatch.c backupfile.c error.c getdate.y getopt.c getopt1.c getversion.c \
33 modechange.c msleep.c xgetcwd.c xmalloc.c xstrdup.c
35 INCLUDES = -I.. -I$(srcdir) -I../intl
37 libtar_a_LIBADD = @ALLOCA@ @LIBOBJS@
38 libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
40 # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
41 $(srcdir)/getdate.c: getdate.y
42 @echo Expect 13 shift/reduce conflicts...
44 $(YACC) $(YFLAGS) getdate.y; \
45 mv -f y.tab.c getdate.c