]> Dogcows Code - chaz/tar/blob - src/Makefile.am
Install rmt into rmtdir
[chaz/tar] / src / Makefile.am
1 # Makefile for GNU tar sources.
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
4 # Software Foundation, Inc.
5
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)
9 ## any later version.
10
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.
15
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
19 ## 02111-1307, USA.
20
21 bin_PROGRAMS = tar
22 rmtdir=$(DEFAULT_RMT_DIR)
23 rmt_PROGRAMS = @RMT@
24 EXTRA_PROGRAMS = rmt
25
26 noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
27 rmt_SOURCES = rmt.c
28 tar_SOURCES = \
29 buffer.c\
30 compare.c\
31 create.c\
32 delete.c\
33 extract.c\
34 xheader.c\
35 incremen.c\
36 list.c\
37 mangle.c\
38 misc.c\
39 names.c\
40 rtapelib.c\
41 sparse.c\
42 system.c\
43 tar.c\
44 update.c\
45 utf8.c
46
47 localedir = $(datadir)/locale
48 INCLUDES = -I$(top_srcdir)/lib -I../lib
49
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)\"" >> $@
55 echo "#endif" >> $@
56
57 rmt.o tar.o : localedir.h
58
59 LDADD = ../lib/libtar.a $(LIBINTL)
60
61 rmt_LDADD = $(LDADD) $(LIB_SETSOCKOPT)
62 tar_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
This page took 0.050381 seconds and 5 git commands to generate.