# $Id$ ## @file # # kNIX Boostrap Makefile for gawk # # 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 gawk template. # TEMPLATE_gawk = gawk template TEMPLATE_gawk_EXTENDS = usr.bin TEMPLATE_gawk_DEFS = $(TEMPLATE_usr.bin_DEFS) \ DEFPATH="\".;/@unixroot/usr/share/awk\"" \ LOCALEDIR=\"/@unixroot/usr/share/locale\" \ GAWK \ HAVE_CONFIG_H TEMPLATE_gawk_INCS = $(TEMPLATE_usr.bin_INCS) \ $(PATH_TARGET) \ $(PATH_SUB_ROOT) TEMPLATE_gawk_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \ $(PATH_TARGET)/config.h # # gawk # PROGRAMS += gawk gawk_TEMPLATE = gawk gawk_INST = usr/bin/gawk$(SUFF_EXE) usr/bin/awk$(SUFF_EXE) usr/bin/igawk$(SUFF_EXE) \ bin/gawk$(SUFF_EXE) bin/awk$(SUFF_EXE) bin/igawk$(SUFF_EXE) gawk_SOURCES = \ array.c \ awkgram.c \ builtin.c \ dfa.c \ ext.c \ field.c \ gawkmisc.c \ getopt.c \ getopt1.c \ io.c \ main.c \ msg.c \ node.c \ random.c \ re.c \ regex.c \ replace.c \ version.c \ eval.c \ profile.c # # pgawk # PROGRAMS += pgawk pgawk_TEMPLATE = gawk pgawk_SOURCES = \ array.c \ awkgram.c \ builtin.c \ dfa.c \ ext.c \ field.c \ gawkmisc.c \ getopt.c \ getopt1.c \ io.c \ main.c \ msg.c \ node.c \ random.c \ re.c \ regex.c \ replace.c \ version.c \ eval_p.c \ profile_p.c ## ## scripts ## #INSTALLS += gawk-scripts #gawk-scripts_TEMPLATE = #gawk-scripts_SOURCES = # # config.h # $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h $(INSTALL) $< $@ include $(PATH_KBUILD)/footer.kmk