1 | # $Id: kNIX-bootstrap.kmk 3845 2014-03-16 20:31:39Z 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 |
|
---|
27 | DEPTH = ../../..
|
---|
28 | include $(PATH_KBUILD)/header.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # sed
|
---|
32 | #
|
---|
33 | PROGRAMS += sed
|
---|
34 | sed_TEMPLATE = usr.bin
|
---|
35 | sed_ORDERDEPS = \
|
---|
36 | $(PATH_TARGET)/config.h \
|
---|
37 | $(PATH_TARGET)/regex.h
|
---|
38 | sed_DEFS = \
|
---|
39 | LOCALEDIR=\"/@unixroot/usr/share/locale\" \
|
---|
40 | HAVE_CONFIG_H
|
---|
41 | sed_INCS = \
|
---|
42 | $(PATH_TARGET) \
|
---|
43 | $(PATH_SUB_ROOT) \
|
---|
44 | $(PATH_SUB_ROOT)/lib \
|
---|
45 | $(PATH_SUB_ROOT)/intl
|
---|
46 | sed_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 |
|
---|
67 | include $(PATH_KBUILD)/footer.kmk
|
---|
68 |
|
---|