source: trunk/essentials/app-arch/cpio/kNIX-bootstrap.kmk@ 3622

Last change on this file since 3622 was 3621, checked in by bird, 17 years ago

Template name.

File size: 3.6 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3168 2007-04-22 02:45:50Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for cpio
5#
6# Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
7#
8#
9# This file is part of kNIX.
10#
11# kNIX is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kNIX is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kNIX; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30#
31# The cpio template.
32#
33TEMPLATE_cpio = cpio template
34TEMPLATE_cpio_EXTENDS = usr.bin
35TEMPLATE_cpio_DEFS = $(TEMPLATE_usr.bin_DEFS) \
36 HAVE_CONFIG_H
37TEMPLATE_cpio_INCS = $(TEMPLATE_usr.bin_INCS) \
38 $(PATH_TARGET) \
39 $(PATH_SUB_ROOT) \
40 $(PATH_SUB_ROOT)/lib
41TEMPLATE_cpio_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
42 $(PATH_TARGET)/config.h \
43 $(PATH_TARGET)/fnmatch.h \
44 $(PATH_TARGET)/getopt.h
45
46#
47# libcpio - internal library.
48#
49LIBRARIES += libcpio
50libcpio_TEMPLATE = cpio
51libcpio_NOINST = yes
52libcpio_SOURCES = \
53 lib/fatal.c \
54 lib/rtapelib.c \
55 lib/paxerror.c \
56 lib/paxexit.c \
57 lib/paxconvert.c \
58 lib/paxnames.c \
59 lib/allocsa.c \
60 lib/argp-ba.c \
61 lib/argp-eexst.c \
62 lib/argp-fmtstream.c \
63 lib/argp-fs-xinl.c \
64 lib/argp-help.c \
65 lib/argp-parse.c \
66 lib/argp-pin.c \
67 lib/argp-pv.c \
68 lib/argp-pvh.c \
69 lib/argp-xinl.c \
70 lib/full-write.c \
71 lib/getdate.c \
72 lib/strnlen1.c \
73 lib/version-etc.c \
74 lib/version-etc-fsf.c \
75 lib/xalloc-die.c \
76 lib/xstrndup.c \
77 lib/getopt.c \
78 lib/getopt1.c \
79 lib/save-cwd.c \
80 lib/argmatch.c \
81 lib/chdir-long.c \
82 lib/mkdirat.c \
83 lib/fchmodat.c \
84 lib/openat-die.c \
85 lib/openat.c \
86 lib/close-stream.c \
87 lib/closeout.c \
88 lib/basename.c \
89 lib/dirname.c \
90 lib/stripslash.c \
91 lib/exitfail.c \
92 lib/open-safer.c \
93 lib/creat-safer.c \
94 lib/fnmatch.c \
95 lib/getcwd.c \
96 lib/gettime.c \
97 lib/hash.c \
98 lib/imaxtostr.c \
99 lib/offtostr.c \
100 lib/umaxtostr.c \
101 lib/mbchar.c \
102 lib/quote.c \
103 lib/quotearg.c \
104 lib/safe-read.c \
105 lib/safe-write.c \
106 lib/savedir.c \
107 lib/strcasecmp.c \
108 lib/dup-safer.c \
109 lib/fd-safer.c \
110 lib/pipe-safer.c \
111 lib/utimens.c \
112 lib/vasnprintf.c \
113 lib/printf-args.c \
114 lib/printf-parse.c \
115 lib/asnprintf.c \
116 lib/xmalloc.c \
117 lib/xgetcwd.c \
118
119#
120# cpio
121#
122PROGRAMS += cpio
123cpio_TEMPLATE = cpio
124cpio_INCS = src
125cpio_SOURCES = \
126 src/main.c \
127 src/copyin.c \
128 src/copyout.c \
129 src/copypass.c \
130 src/defer.c \
131 src/dstring.c \
132 src/filemode.c \
133 src/global.c \
134 src/idcache.c \
135 src/makepath.c \
136 src/tar.c \
137 src/userspec.c \
138 src/util.c
139cpio_LIBS = $(TARGET_libcpio)
140
141#
142# The cpio man pages.
143#
144INSTALLS += cpio-manpages
145cpio-manpages_TEMPLATE = usr.bin.man
146cpio-manpages_SOURCES = \
147 doc/cpio.1
148
149#
150# config.h, fnmatch.h, getopt.h
151#
152$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h | $(call DIRDEP,$(PATH_TARGET))
153 $(INSTALL) $< $@
154
155$(PATH_TARGET)/fnmatch.h: lib/fnmatch_.h | $(call DIRDEP,$(PATH_TARGET))
156 $(INSTALL) $< $@
157
158$(PATH_TARGET)/getopt.h: lib/getopt_.h | $(call DIRDEP,$(PATH_TARGET))
159 $(INSTALL) $< $@
160
161
162include $(PATH_KBUILD)/footer.kmk
163
Note: See TracBrowser for help on using the repository browser.