source: trunk/essentials/sys-apps/grep/kNIX-bootstrap.kmk@ 3066

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

egrep, fgrep.

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
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
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30#
31# The greputils template.
32#
33TEMPLATE_greputils_EXTENDS = usr.bin
34TEMPLATE_greputils_DEFS = $(TEMPLATE_usr.bin_DEFS) \
35 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
36 HAVE_CONFIG_H
37TEMPLATE_greputils_INCS = $(TEMPLATE_usr.bin_INCS) \
38 $(PATH_TARGET) \
39 $(PATH_SUB_CURRENT) \
40 $(PATH_SUB_ROOT)/lib
41TEMPLATE_greputils_LIBS = $(TEMPLATE_usr.bin_LIBS) \
42 $(TARGET_libgreputils)
43TEMPLATE_greputils_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
44 $(PATH_TARGET)/config.h
45
46#
47# libgreputils
48#
49LIBRARIES += libgreputils
50libgreputils_TEMPLATE = greputils
51libgreputils_NOINST = true
52libgreputils_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#
68PROGRAMS += grep
69grep_TEMPLATE = greputils
70grep_INST = usr/bin/grep$(SUFF_EXE) usr/bin/egrep$(SUFF_EXE) usr/bin/fgrep$(SUFF_EXE)
71grep_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
84include $(PATH_KBUILD)/footer.kmk
85
Note: See TracBrowser for help on using the repository browser.