[3845] | 1 | # $Id: kNIX-bootstrap.kmk 3845 2014-03-16 20:31:39Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | #
|
---|
| 4 | # kNIX Boostrap Makefile for gawk
|
---|
| 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 |
|
---|
| 27 | DEPTH = ../../..
|
---|
| 28 | include $(PATH_KBUILD)/header.kmk
|
---|
| 29 |
|
---|
| 30 | #
|
---|
| 31 | # The gawk template.
|
---|
| 32 | #
|
---|
| 33 | TEMPLATE_gawk = gawk template
|
---|
| 34 | TEMPLATE_gawk_EXTENDS = usr.bin
|
---|
| 35 | TEMPLATE_gawk_DEFS = $(TEMPLATE_usr.bin_DEFS) \
|
---|
| 36 | DEFPATH="\".;/@unixroot/usr/share/awk\"" \
|
---|
| 37 | LOCALEDIR=\"/@unixroot/usr/share/locale\" \
|
---|
| 38 | GAWK \
|
---|
| 39 | HAVE_CONFIG_H
|
---|
| 40 | TEMPLATE_gawk_INCS = $(TEMPLATE_usr.bin_INCS) \
|
---|
| 41 | $(PATH_TARGET) \
|
---|
| 42 | $(PATH_SUB_ROOT)
|
---|
| 43 | TEMPLATE_gawk_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
|
---|
| 44 | $(PATH_TARGET)/config.h
|
---|
| 45 |
|
---|
| 46 | #
|
---|
| 47 | # gawk
|
---|
| 48 | #
|
---|
| 49 | PROGRAMS += gawk
|
---|
| 50 | gawk_TEMPLATE = gawk
|
---|
| 51 | gawk_INST = usr/bin/gawk$(SUFF_EXE) usr/bin/awk$(SUFF_EXE) usr/bin/igawk$(SUFF_EXE) \
|
---|
| 52 | bin/gawk$(SUFF_EXE) bin/awk$(SUFF_EXE) bin/igawk$(SUFF_EXE)
|
---|
| 53 | gawk_SOURCES = \
|
---|
| 54 | array.c \
|
---|
| 55 | awkgram.c \
|
---|
| 56 | builtin.c \
|
---|
| 57 | dfa.c \
|
---|
| 58 | ext.c \
|
---|
| 59 | field.c \
|
---|
| 60 | gawkmisc.c \
|
---|
| 61 | getopt.c \
|
---|
| 62 | getopt1.c \
|
---|
| 63 | io.c \
|
---|
| 64 | main.c \
|
---|
| 65 | msg.c \
|
---|
| 66 | node.c \
|
---|
| 67 | random.c \
|
---|
| 68 | re.c \
|
---|
| 69 | regex.c \
|
---|
| 70 | replace.c \
|
---|
| 71 | version.c \
|
---|
| 72 | eval.c \
|
---|
| 73 | profile.c
|
---|
| 74 |
|
---|
| 75 | #
|
---|
| 76 | # pgawk
|
---|
| 77 | #
|
---|
| 78 | PROGRAMS += pgawk
|
---|
| 79 | pgawk_TEMPLATE = gawk
|
---|
| 80 | pgawk_SOURCES = \
|
---|
| 81 | array.c \
|
---|
| 82 | awkgram.c \
|
---|
| 83 | builtin.c \
|
---|
| 84 | dfa.c \
|
---|
| 85 | ext.c \
|
---|
| 86 | field.c \
|
---|
| 87 | gawkmisc.c \
|
---|
| 88 | getopt.c \
|
---|
| 89 | getopt1.c \
|
---|
| 90 | io.c \
|
---|
| 91 | main.c \
|
---|
| 92 | msg.c \
|
---|
| 93 | node.c \
|
---|
| 94 | random.c \
|
---|
| 95 | re.c \
|
---|
| 96 | regex.c \
|
---|
| 97 | replace.c \
|
---|
| 98 | version.c \
|
---|
| 99 | eval_p.c \
|
---|
| 100 | profile_p.c
|
---|
| 101 |
|
---|
| 102 | ##
|
---|
| 103 | ## scripts
|
---|
| 104 | ##
|
---|
| 105 | #INSTALLS += gawk-scripts
|
---|
| 106 | #gawk-scripts_TEMPLATE =
|
---|
| 107 | #gawk-scripts_SOURCES =
|
---|
| 108 |
|
---|
| 109 | #
|
---|
| 110 | # config.h
|
---|
| 111 | #
|
---|
| 112 | $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
|
---|
| 113 | $(INSTALL) $< $@
|
---|
| 114 |
|
---|
| 115 | include $(PATH_KBUILD)/footer.kmk
|
---|
| 116 |
|
---|