source: trunk/essentials/sys-apps/sed/kNIX-bootstrap.kmk@ 3203

Last change on this file since 3203 was 3085, checked in by bird, 18 years ago

Configured sed building and bootstrapping. References #84.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3085 2007-04-09 23:51:18Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for sed
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# sed
32#
33PROGRAMS += sed
34sed_TEMPLATE = usr.bin
35sed_ORDERDEPS = \
36 $(PATH_TARGET)/config.h \
37 $(PATH_TARGET)/regex.h
38sed_DEFS = \
39 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
40 HAVE_CONFIG_H
41sed_INCS = \
42 $(PATH_TARGET) \
43 $(PATH_SUB_ROOT) \
44 $(PATH_SUB_ROOT)/lib \
45 $(PATH_SUB_ROOT)/intl
46sed_SOURCES = \
47 sed/sed.c \
48 sed/compile.c \
49 sed/execute.c \
50 sed/regexp.c \
51 sed/fmt.c \
52 sed/mbcs.c \
53 \
54 lib/getopt1.c \
55 lib/getopt.c \
56 lib/utils.c \
57 lib/regex.c
58
59#
60# config.h and regex.h
61#
62$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
63 $(INSTALL) $< $@
64$(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
65 $(CP) $^ $@
66
67include $(PATH_KBUILD)/footer.kmk
68
Note: See TracBrowser for help on using the repository browser.