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 rmtdir=$(DEFAULT_RMT_DIR)
26 noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
47 localedir = $(datadir)/locale
48 INCLUDES = -I$(top_srcdir)/lib -I../lib
50 DISTCLEANFILES = localedir.h
51 localedir.h : Makefile
52 echo '#define LOCALEDIR "$(localedir)"' >$@
53 echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
54 echo "# define DEFAULT_RMT_COMMAND \"$(rmtdir)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
57 rmt.o tar.o : localedir.h
59 LDADD = ../lib/libtar.a $(LIBINTL)
61 rmt_LDADD = $(LDADD) $(LIB_SETSOCKOPT)
62 tar_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)