source: trunk/essentials/sys-apps/gawk/kNIX-bootstrap.kmk@ 3238

Last change on this file since 3238 was 3168, checked in by bird, 18 years ago

comment.

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