# $Id$ ## @file # # kNIX Boostrap Makefile for sed # # 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 # # sed # PROGRAMS += sed sed_TEMPLATE = usr.bin sed_ORDERDEPS = \ $(PATH_TARGET)/config.h \ $(PATH_TARGET)/regex.h sed_DEFS = \ LOCALEDIR=\"/@unixroot/usr/share/locale\" \ HAVE_CONFIG_H sed_INCS = \ $(PATH_TARGET) \ $(PATH_SUB_ROOT) \ $(PATH_SUB_ROOT)/lib \ $(PATH_SUB_ROOT)/intl sed_SOURCES = \ sed/sed.c \ sed/compile.c \ sed/execute.c \ sed/regexp.c \ sed/fmt.c \ sed/mbcs.c \ \ lib/getopt1.c \ lib/getopt.c \ lib/utils.c \ lib/regex.c # # config.h and regex.h # $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h $(INSTALL) $< $@ $(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET)) $(CP) $^ $@ include $(PATH_KBUILD)/footer.kmk