1 | # $Id: kNIX-bootstrap.kmk 3066 2007-04-08 21:08:24Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # kNIX Boostrap Makefile for grep
|
---|
5 | #
|
---|
6 | # Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This file is part of kLIBC.
|
---|
10 | #
|
---|
11 | # kLIBC 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 | # kLIBC 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 kLIBC; 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 greputils template.
|
---|
32 | #
|
---|
33 | TEMPLATE_greputils_EXTENDS = usr.bin
|
---|
34 | TEMPLATE_greputils_DEFS = $(TEMPLATE_usr.bin_DEFS) \
|
---|
35 | LOCALEDIR=\"/@unixroot/usr/share/locale\" \
|
---|
36 | HAVE_CONFIG_H
|
---|
37 | TEMPLATE_greputils_INCS = $(TEMPLATE_usr.bin_INCS) \
|
---|
38 | $(PATH_TARGET) \
|
---|
39 | $(PATH_SUB_CURRENT) \
|
---|
40 | $(PATH_SUB_ROOT)/lib
|
---|
41 | TEMPLATE_greputils_LIBS = $(TEMPLATE_usr.bin_LIBS) \
|
---|
42 | $(TARGET_libgreputils)
|
---|
43 | TEMPLATE_greputils_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
|
---|
44 | $(PATH_TARGET)/config.h
|
---|
45 |
|
---|
46 | #
|
---|
47 | # libgreputils
|
---|
48 | #
|
---|
49 | LIBRARIES += libgreputils
|
---|
50 | libgreputils_TEMPLATE = greputils
|
---|
51 | libgreputils_NOINST = true
|
---|
52 | libgreputils_SOURCES = \
|
---|
53 | lib/closeout.c \
|
---|
54 | lib/error.c \
|
---|
55 | lib/exclude.c \
|
---|
56 | lib/hard-locale.c \
|
---|
57 | lib/isdir.c \
|
---|
58 | lib/obstack.c \
|
---|
59 | lib/quotearg.c \
|
---|
60 | lib/savedir.c \
|
---|
61 | lib/xmalloc.c \
|
---|
62 | lib/xstrtol.c \
|
---|
63 | lib/xstrtoumax.c
|
---|
64 |
|
---|
65 | #
|
---|
66 | # diff
|
---|
67 | #
|
---|
68 | PROGRAMS += grep
|
---|
69 | grep_TEMPLATE = greputils
|
---|
70 | grep_INST = usr/bin/grep$(SUFF_EXE) usr/bin/egrep$(SUFF_EXE) usr/bin/fgrep$(SUFF_EXE)
|
---|
71 | grep_SOURCES = \
|
---|
72 | src/grep.c \
|
---|
73 | src/dfa.c \
|
---|
74 | src/kwset.c \
|
---|
75 | src/grepmat.c \
|
---|
76 | src/search.c \
|
---|
77 |
|
---|
78 | #
|
---|
79 | # config.h
|
---|
80 | #
|
---|
81 | $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
|
---|
82 | $(INSTALL) $< $@
|
---|
83 |
|
---|
84 | include $(PATH_KBUILD)/footer.kmk
|
---|
85 |
|
---|