source: trunk/essentials/app-arch/tar/kNIX-bootstrap.kmk@ 3359

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

Build config, including bootstrapping.

  • Property svn:eol-style set to native
File size: 3.9 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3168 2007-04-22 02:45:50Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for tar
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 tar template.
32#
33TEMPLATE_tar_EXTENDS = bin
34TEMPLATE_tar_DEFS = $(TEMPLATE_bin_DEFS) \
35 HAVE_CONFIG_H
36TEMPLATE_tar_INCS = $(TEMPLATE_bin_INCS) \
37 $(PATH_TARGET) \
38 $(PATH_SUB_ROOT) \
39 $(PATH_SUB_ROOT)/lib
40TEMPLATE_tar_ORDERDEPS = $(TEMPLATE_bin_ORDERDEPS) \
41 $(PATH_TARGET)/config.h \
42 $(PATH_TARGET)/configmake.h \
43 $(PATH_TARGET)/fnmatch.h \
44 $(PATH_TARGET)/getopt.h \
45 $(PATH_TARGET)/rmt-command.h
46
47#
48# libtar - internal library.
49#
50LIBRARIES += libtar
51libtar_TEMPLATE = tar
52libtar_NOINST = yes
53libtar_SOURCES = \
54 lib/allocsa.c \
55 lib/argp-ba.c \
56 lib/argp-eexst.c \
57 lib/argp-fmtstream.c \
58 lib/argp-fs-xinl.c \
59 lib/argp-help.c \
60 lib/argp-parse.c \
61 lib/argp-pin.c \
62 lib/argp-pv.c \
63 lib/argp-pvh.c \
64 lib/argp-xinl.c \
65 lib/full-write.c \
66 lib/getdate.c \
67 lib/localcharset.c \
68 lib/strnlen1.c \
69 lib/version-etc.c \
70 lib/version-etc-fsf.c \
71 lib/xalloc-die.c \
72 lib/xstrndup.c \
73 lib/xstrtoumax.c \
74 lib/paxerror.c \
75 lib/paxexit.c \
76 lib/paxnames.c \
77 lib/prepargs.c \
78 lib/rtapelib.c \
79 lib/stdopen.c \
80 lib/argmatch.c \
81 lib/asnprintf.c \
82 lib/backupfile.c \
83 lib/basename.c \
84 lib/chdir-long.c \
85 lib/close-stream.c \
86 lib/closeout.c \
87 lib/creat-safer.c \
88 lib/dirname.c \
89 lib/dup-safer.c \
90 lib/exclude.c \
91 lib/exitfail.c \
92 lib/fchmodat.c \
93 lib/fd-safer.c \
94 lib/fnmatch.c \
95 lib/getcwd.c \
96 lib/getopt.c \
97 lib/getopt1.c \
98 lib/gettime.c \
99 lib/hash.c \
100 lib/human.c \
101 lib/imaxtostr.c \
102 lib/mbchar.c \
103 lib/mkdirat.c \
104 lib/modechange.c \
105 lib/offtostr.c \
106 lib/open-safer.c \
107 lib/openat.c \
108 lib/openat-die.c \
109 lib/openat-proc.c \
110 lib/pipe-safer.c \
111 lib/printf-args.c \
112 lib/printf-parse.c \
113 lib/quote.c \
114 lib/quotearg.c \
115 lib/rpmatch.c \
116 lib/safe-read.c \
117 lib/safe-write.c \
118 lib/save-cwd.c \
119 lib/savedir.c \
120 lib/strcasecmp.c \
121 lib/stripslash.c \
122 lib/tempname.c \
123 lib/uinttostr.c \
124 lib/umaxtostr.c \
125 lib/unlinkdir.c \
126 lib/utimens.c \
127 lib/vasnprintf.c \
128 lib/xgetcwd.c \
129 lib/xmalloc.c \
130 lib/xstrtol.c \
131 lib/xstrtoul.c
132
133#
134# tar
135#
136PROGRAMS += tar
137tar_TEMPLATE = tar
138tar_INCS = src
139tar_SOURCES = \
140 src/buffer.c \
141 src/compare.c \
142 src/create.c \
143 src/delete.c \
144 src/extract.c \
145 src/incremen.c \
146 src/list.c \
147 src/misc.c \
148 src/names.c \
149 src/sparse.c \
150 src/system.c \
151 src/tar.c \
152 src/transform.c \
153 src/update.c \
154 src/utf8.c \
155 src/xheader.c
156
157tar_LIBS = $(TARGET_libtar)
158
159#
160# config.h, configmake.h, fnmatch.h, getopt.h
161#
162$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h | $(call DIRDEP,$(PATH_TARGET))
163 $(INSTALL) $< $@
164
165$(PATH_TARGET)/configmake.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-configmake.h | $(call DIRDEP,$(PATH_TARGET))
166 $(INSTALL) $< $@
167
168$(PATH_TARGET)/fnmatch.h: lib/fnmatch_.h | $(call DIRDEP,$(PATH_TARGET))
169 $(INSTALL) $< $@
170
171$(PATH_TARGET)/getopt.h: lib/getopt_.h | $(call DIRDEP,$(PATH_TARGET))
172 $(INSTALL) $< $@
173
174$(PATH_TARGET)/rmt-command.h: | $(call DIRDEP,$(PATH_TARGET))
175 $(RM) -f $@
176 $(APPEND) $@ '#define DEFAULT_RMT_COMMAND "/@unixroot/usr/libexec/rmt.exe"'
177
178include $(PATH_KBUILD)/footer.kmk
179
Note: See TracBrowser for help on using the repository browser.