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

Last change on this file since 3339 was 3339, checked in by bird, 18 years ago

build config.

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_EXTENDS = usr.bin
34TEMPLATE_cpio_DEFS = $(TEMPLATE_usr.bin_DEFS) \
35 HAVE_CONFIG_H
36TEMPLATE_cpio_INCS = $(TEMPLATE_usr.bin_INCS) \
37 $(PATH_TARGET) \
38 $(PATH_SUB_ROOT) \
39 $(PATH_SUB_ROOT)/lib
40TEMPLATE_cpio_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
41 $(PATH_TARGET)/config.h \
42 $(PATH_TARGET)/fnmatch.h \
43 $(PATH_TARGET)/getopt.h
44
45#
46# libcpio - internal library.
47#
48LIBRARIES += libcpio
49libcpio_TEMPLATE = cpio
50libcpio_NOINST = yes
51libcpio_SOURCES = \
52 lib/fatal.c \
53 lib/rtapelib.c \
54 lib/paxerror.c \
55 lib/paxexit.c \
56 lib/paxconvert.c \
57 lib/paxnames.c \
58 lib/allocsa.c \
59 lib/argp-ba.c \
60 lib/argp-eexst.c \
61 lib/argp-fmtstream.c \
62 lib/argp-fs-xinl.c \
63 lib/argp-help.c \
64 lib/argp-parse.c \
65 lib/argp-pin.c \
66 lib/argp-pv.c \
67 lib/argp-pvh.c \
68 lib/argp-xinl.c \
69 lib/full-write.c \
70 lib/getdate.c \
71 lib/strnlen1.c \
72 lib/version-etc.c \
73 lib/version-etc-fsf.c \
74 lib/xalloc-die.c \
75 lib/xstrndup.c \
76 lib/getopt.c \
77 lib/getopt1.c \
78 lib/save-cwd.c \
79 lib/argmatch.c \
80 lib/chdir-long.c \
81 lib/mkdirat.c \
82 lib/fchmodat.c \
83 lib/openat-die.c \
84 lib/openat.c \
85 lib/close-stream.c \
86 lib/closeout.c \
87 lib/basename.c \
88 lib/dirname.c \
89 lib/stripslash.c \
90 lib/exitfail.c \
91 lib/open-safer.c \
92 lib/creat-safer.c \
93 lib/fnmatch.c \
94 lib/getcwd.c \
95 lib/gettime.c \
96 lib/hash.c \
97 lib/imaxtostr.c \
98 lib/offtostr.c \
99 lib/umaxtostr.c \
100 lib/mbchar.c \
101 lib/quote.c \
102 lib/quotearg.c \
103 lib/safe-read.c \
104 lib/safe-write.c \
105 lib/savedir.c \
106 lib/strcasecmp.c \
107 lib/dup-safer.c \
108 lib/fd-safer.c \
109 lib/pipe-safer.c \
110 lib/utimens.c \
111 lib/vasnprintf.c \
112 lib/printf-args.c \
113 lib/printf-parse.c \
114 lib/asnprintf.c \
115 lib/xmalloc.c \
116 lib/xgetcwd.c \
117
118#
119# cpio
120#
121PROGRAMS += cpio
122cpio_TEMPLATE = cpio
123cpio_INCS = src
124cpio_SOURCES = \
125 src/main.c \
126 src/copyin.c \
127 src/copyout.c \
128 src/copypass.c \
129 src/defer.c \
130 src/dstring.c \
131 src/filemode.c \
132 src/global.c \
133 src/idcache.c \
134 src/makepath.c \
135 src/tar.c \
136 src/userspec.c \
137 src/util.c
138cpio_LIBS = $(TARGET_libcpio)
139
140#
141# The cpio man pages.
142#
143INSTALLS += cpio-manpages
144cpio-manpages_TEMPLATE = usr.bin.man
145cpio-manpages_SOURCES = \
146 doc/cpio.1
147
148#
149# config.h, fnmatch.h, getopt.h
150#
151$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h | $(call DIRDEP,$(PATH_TARGET))
152 $(INSTALL) $< $@
153
154$(PATH_TARGET)/fnmatch.h: lib/fnmatch_.h | $(call DIRDEP,$(PATH_TARGET))
155 $(INSTALL) $< $@
156
157$(PATH_TARGET)/getopt.h: lib/getopt_.h | $(call DIRDEP,$(PATH_TARGET))
158 $(INSTALL) $< $@
159
160
161include $(PATH_KBUILD)/footer.kmk
162
Note: See TracBrowser for help on using the repository browser.