1 # Makefile for GNU tar sources.
3 # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
4 # Software Foundation, Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 libexec_PROGRAMS = @RMT@
25 noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
27 tar_SOURCES = buffer.c compare.c create.c delete.c extract.c \
28 xheader.c incremen.c list.c mangle.c misc.c names.c rtapelib.c tar.c update.c
30 localedir = $(datadir)/locale
31 INCLUDES = -I$(top_srcdir)/lib -I../lib
33 DISTCLEANFILES = localedir.h
34 localedir.h : Makefile
35 echo '#define LOCALEDIR "$(localedir)"' >$@
36 rmt.o tar.o : localedir.h
38 LDADD = ../lib/libtar.a $(LIBINTL)
40 rmt_LDADD = $(LDADD) $(LIB_SETSOCKOPT)
41 tar_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)