Debian Codegraph @

lib/Makefile.am

raw
1 # Makefile for GNU tar library. -*- Makefile -*-
2
3 # Copyright 1994-2023 Free Software Foundation, Inc.
4
5 # This file is part of GNU tar.
6
7 # GNU tar is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11
12 # GNU tar is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 noinst_LIBRARIES=libtar.a
21 rmt-command.h : Makefile
22 $(AM_V_GEN)rm -f $@-t $@
23 $(AM_V_at)echo "#ifndef DEFAULT_RMT_COMMAND" >> $@-t
24 $(AM_V_at)echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@-t
25 $(AM_V_at)echo "#endif" >> $@-t
26 $(AM_V_at)mv $@-t $@
27 BUILT_SOURCES = rmt-command.h
28 CLEANFILES = rmt-command.h rmt-command.h-t
29 AM_CPPFLAGS = -I$(top_srcdir)/gnu -I../ -I../gnu
30 AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
31
32 noinst_HEADERS = \
33 paxlib.h\
34 rmt.h\
35 system.h\
36 system-ioctl.h\
37 wordsplit.h\
38 xattr-at.h
39
40 libtar_a_SOURCES = \
41 paxerror.c paxexit-status.c paxlib.h paxnames.c \
42 rtapelib.c \
43 rmt.h \
44 system.h system-ioctl.h \
45 wordsplit.c\
46 xattr-at.c
47
48 if !TAR_COND_XATTR_H
49 BUILT_SOURCES += attr/xattr.h
50 attr/xattr.h: attr-xattr.in.h $(top_builddir)/config.status
51 $(AM_V_at)$(MKDIR_P) attr
52 $(AM_V_GEN)rm -f $@-t $@ && \
53 cp $(srcdir)/attr-xattr.in.h attr/xattr.h
54 endif
55
56 MOSTLYCLEANFILES = attr/xattr.h
57
58 EXTRA_DIST = attr-xattr.in.h