# $Id: kNIX-bootstrap.kmk 3168 2007-04-22 02:45:50Z bird $ ## @file # # kNIX Boostrap Makefile for tar # # Copyright (c) 2007 knut st. osmundsen # # # This file is part of kNIX. # # kNIX is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # kNIX is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kNIX; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk # # The tar template. # TEMPLATE_tar = tar template TEMPLATE_tar_EXTENDS = bin TEMPLATE_tar_DEFS = $(TEMPLATE_bin_DEFS) \ HAVE_CONFIG_H TEMPLATE_tar_INCS = $(TEMPLATE_bin_INCS) \ $(PATH_TARGET) \ $(PATH_SUB_ROOT) \ $(PATH_SUB_ROOT)/lib TEMPLATE_tar_ORDERDEPS = $(TEMPLATE_bin_ORDERDEPS) \ $(PATH_TARGET)/config.h \ $(PATH_TARGET)/configmake.h \ $(PATH_TARGET)/fnmatch.h \ $(PATH_TARGET)/getopt.h \ $(PATH_TARGET)/rmt-command.h # # libtar - internal library. # LIBRARIES += libtar libtar_TEMPLATE = tar libtar_NOINST = yes libtar_SOURCES = \ lib/allocsa.c \ lib/argp-ba.c \ lib/argp-eexst.c \ lib/argp-fmtstream.c \ lib/argp-fs-xinl.c \ lib/argp-help.c \ lib/argp-parse.c \ lib/argp-pin.c \ lib/argp-pv.c \ lib/argp-pvh.c \ lib/argp-xinl.c \ lib/full-write.c \ lib/getdate.c \ lib/localcharset.c \ lib/strnlen1.c \ lib/version-etc.c \ lib/version-etc-fsf.c \ lib/xalloc-die.c \ lib/xstrndup.c \ lib/xstrtoumax.c \ lib/paxerror.c \ lib/paxexit.c \ lib/paxnames.c \ lib/prepargs.c \ lib/rtapelib.c \ lib/stdopen.c \ lib/argmatch.c \ lib/asnprintf.c \ lib/backupfile.c \ lib/basename.c \ lib/chdir-long.c \ lib/close-stream.c \ lib/closeout.c \ lib/creat-safer.c \ lib/dirname.c \ lib/dup-safer.c \ lib/exclude.c \ lib/exitfail.c \ lib/fchmodat.c \ lib/fd-safer.c \ lib/fnmatch.c \ lib/getcwd.c \ lib/getopt.c \ lib/getopt1.c \ lib/gettime.c \ lib/hash.c \ lib/human.c \ lib/imaxtostr.c \ lib/mbchar.c \ lib/mkdirat.c \ lib/modechange.c \ lib/offtostr.c \ lib/open-safer.c \ lib/openat.c \ lib/openat-die.c \ lib/openat-proc.c \ lib/pipe-safer.c \ lib/printf-args.c \ lib/printf-parse.c \ lib/quote.c \ lib/quotearg.c \ lib/rpmatch.c \ lib/safe-read.c \ lib/safe-write.c \ lib/save-cwd.c \ lib/savedir.c \ lib/strcasecmp.c \ lib/stripslash.c \ lib/tempname.c \ lib/uinttostr.c \ lib/umaxtostr.c \ lib/unlinkdir.c \ lib/utimens.c \ lib/vasnprintf.c \ lib/xgetcwd.c \ lib/xmalloc.c \ lib/xstrtol.c \ lib/xstrtoul.c # # tar # PROGRAMS += tar tar_TEMPLATE = tar tar_INCS = src tar_SOURCES = \ src/buffer.c \ src/compare.c \ src/create.c \ src/delete.c \ src/extract.c \ src/incremen.c \ src/list.c \ src/misc.c \ src/names.c \ src/sparse.c \ src/system.c \ src/tar.c \ src/transform.c \ src/update.c \ src/utf8.c \ src/xheader.c tar_LIBS = $(TARGET_libtar) # # config.h, configmake.h, fnmatch.h, getopt.h # $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h | $(call DIRDEP,$(PATH_TARGET)) $(INSTALL) $< $@ $(PATH_TARGET)/configmake.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-configmake.h | $(call DIRDEP,$(PATH_TARGET)) $(INSTALL) $< $@ $(PATH_TARGET)/fnmatch.h: lib/fnmatch_.h | $(call DIRDEP,$(PATH_TARGET)) $(INSTALL) $< $@ $(PATH_TARGET)/getopt.h: lib/getopt_.h | $(call DIRDEP,$(PATH_TARGET)) $(INSTALL) $< $@ $(PATH_TARGET)/rmt-command.h: | $(call DIRDEP,$(PATH_TARGET)) $(RM) -f $@ $(APPEND) $@ '#define DEFAULT_RMT_COMMAND "/@unixroot/usr/libexec/rmt.exe"' include $(PATH_KBUILD)/footer.kmk