07c117d3d17c7da8722474128d5f0bd177bb7fc9
[debian/tar] / src / Makefile.am
1 # Makefile for GNU tar sources.
2
3 # Copyright 1994-1997, 1999-2001, 2003, 2006-2007, 2009, 2013 Free
4 # Software Foundation, Inc.
5
6 # This file is part of GNU tar.
7
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21 bin_PROGRAMS = tar
22
23 noinst_HEADERS = arith.h common.h tar.h xattrs.h
24 tar_SOURCES = \
25  buffer.c\
26  checkpoint.c\
27  compare.c\
28  create.c\
29  delete.c\
30  exit.c\
31  extract.c\
32  xheader.c\
33  incremen.c\
34  list.c\
35  misc.c\
36  names.c\
37  sparse.c\
38  suffix.c\
39  system.c\
40  tar.c\
41  transform.c\
42  unlink.c\
43  update.c\
44  utf8.c\
45  warning.c\
46  xattrs.c
47
48 AM_CPPFLAGS = -I$(top_srcdir)/gnu -I../ -I../gnu -I$(top_srcdir)/lib -I../lib
49 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
50
51 LDADD = ../lib/libtar.a ../gnu/libgnu.a $(LIBINTL) $(LIBICONV)
52
53 tar_LDADD = $(LIBS) $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_SELINUX)