1 | # Makefile for GNU cpio library.
|
---|
2 |
|
---|
3 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
---|
4 |
|
---|
5 | ## This program is free software; you can redistribute it and/or modify
|
---|
6 | ## it under the terms of the GNU General Public License as published by
|
---|
7 | ## the Free Software Foundation; either version 2, or (at your option)
|
---|
8 | ## any later version.
|
---|
9 |
|
---|
10 | ## This program is distributed in the hope that it will be useful,
|
---|
11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | ## GNU General Public License for more details.
|
---|
14 |
|
---|
15 | ## You should have received a copy of the GNU General Public License
|
---|
16 | ## along with this program; if not, write to the Free Software
|
---|
17 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
18 | ## 02110-1301, USA.
|
---|
19 |
|
---|
20 | noinst_LIBRARIES = libcpio.a
|
---|
21 | noinst_HEADERS = system.h system-ioctl.h localedir.h rmt.h paxlib.h
|
---|
22 | libcpio_a_SOURCES = fatal.c rtapelib.c paxerror.c paxexit.c paxconvert.c paxnames.c
|
---|
23 |
|
---|
24 | EXTRA_DIST=Makefile.tmpl bcopy.c mkdir.c strdup.c strerror.c
|
---|
25 |
|
---|
26 | localedir = $(datadir)/locale
|
---|
27 |
|
---|
28 | DISTCLEANFILES = localedir.h
|
---|
29 | localedir.h : Makefile
|
---|
30 | echo '#define LOCALEDIR "$(localedir)"' >$@
|
---|
31 | echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
|
---|
32 | echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
|
---|
33 | echo "#endif" >> $@
|
---|
34 |
|
---|
35 | libcpio_a_LIBADD = $(LIBOBJS) $(ALLOCA)
|
---|
36 | libcpio_a_DEPENDENCIES = $(libcpio_a_LIBADD)
|
---|
37 |
|
---|
38 | rtapelib.o: localedir.h
|
---|
39 |
|
---|
40 | AM_CPPFLAGS =
|
---|
41 | BUILT_SOURCES =
|
---|
42 | MAINTAINERCLEANFILES =
|
---|
43 | MOSTLYCLEANFILES =
|
---|
44 | lib_OBJECTS = $(libcpio_a_OBJECTS)
|
---|
45 |
|
---|
46 | # gnulib modules
|
---|
47 |
|
---|