# $Id$ ## @file # # kNIX Boostrap Makefile for patch # # Copyright (c) 2007 knut st. osmundsen # # # This file is part of kLIBC. # # kLIBC 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. # # kLIBC 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 kLIBC; 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 # # patch # PROGRAMS += patch patch_TEMPLATE = usr.bin patch_DEFS = HAVE_CONFIG_H ed_PROGRAM=\"ed\" patch_INCS = $(PATH_TARGET) patch_CFLAGS = -std=gnu99 patch_SOURCES = \ addext.c \ argmatch.c \ backupfile.c \ basename.c \ dirname.c \ getopt.c \ getopt1.c \ inp.c \ maketime.c \ partime.c \ patch.c \ pch.c \ quote.c \ quotearg.c \ quotesys.c \ util.c \ version.c \ xmalloc.c patch_ORDERDEPS = \ $(PATH_TARGET)/config.h # # config.h # $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h $(INSTALL) $< $@ # # The manual page. # INSTALLS += patch.man patch.man_TEMPLATE = usr.bin.man patch.man_SOURCES = \ patch.man=>patch.1 include $(PATH_KBUILD)/footer.kmk