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

Last change on this file since 3845 was 3845, checked in by bird, 11 years ago

svn:eol-style: native

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3845 2014-03-16 20:31:39Z 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 = greputils template
34TEMPLATE_greputils_EXTENDS = usr.bin
35TEMPLATE_greputils_DEFS = $(TEMPLATE_usr.bin_DEFS) \
36 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
37 HAVE_CONFIG_H
38TEMPLATE_greputils_INCS = $(TEMPLATE_usr.bin_INCS) \
39 $(PATH_TARGET) \
40 $(PATH_SUB_CURRENT) \
41 $(PATH_SUB_ROOT)/lib
42TEMPLATE_greputils_LIBS = $(TEMPLATE_usr.bin_LIBS) \
43 $(TARGET_libgreputils)
44TEMPLATE_greputils_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
45 $(PATH_TARGET)/config.h
46
47#
48# libgreputils
49#
50LIBRARIES += libgreputils
51libgreputils_TEMPLATE = greputils
52libgreputils_NOINST = true
53libgreputils_SOURCES = \
54 lib/closeout.c \
55 lib/error.c \
56 lib/exclude.c \
57 lib/hard-locale.c \
58 lib/isdir.c \
59 lib/obstack.c \
60 lib/quotearg.c \
61 lib/savedir.c \
62 lib/xmalloc.c \
63 lib/xstrtol.c \
64 lib/xstrtoumax.c
65
66#
67# diff
68#
69PROGRAMS += grep
70grep_TEMPLATE = greputils
71grep_INST = usr/bin/grep$(SUFF_EXE) usr/bin/egrep$(SUFF_EXE) usr/bin/fgrep$(SUFF_EXE)
72grep_SOURCES = \
73 src/grep.c \
74 src/dfa.c \
75 src/kwset.c \
76 src/grepmat.c \
77 src/search.c \
78
79#
80# config.h
81#
82$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
83 $(INSTALL) $< $@
84
85include $(PATH_KBUILD)/footer.kmk
86
Note: See TracBrowser for help on using the repository browser.