[3845] | 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 |
|
---|
| 27 | DEPTH = ../../..
|
---|
| 28 | include $(PATH_KBUILD)/header.kmk
|
---|
| 29 |
|
---|
| 30 | #
|
---|
| 31 | # The greputils template.
|
---|
| 32 | #
|
---|
| 33 | TEMPLATE_greputils = greputils template
|
---|
| 34 | TEMPLATE_greputils_EXTENDS = usr.bin
|
---|
| 35 | TEMPLATE_greputils_DEFS = $(TEMPLATE_usr.bin_DEFS) \
|
---|
| 36 | LOCALEDIR=\"/@unixroot/usr/share/locale\" \
|
---|
| 37 | HAVE_CONFIG_H
|
---|
| 38 | TEMPLATE_greputils_INCS = $(TEMPLATE_usr.bin_INCS) \
|
---|
| 39 | $(PATH_TARGET) \
|
---|
| 40 | $(PATH_SUB_CURRENT) \
|
---|
| 41 | $(PATH_SUB_ROOT)/lib
|
---|
| 42 | TEMPLATE_greputils_LIBS = $(TEMPLATE_usr.bin_LIBS) \
|
---|
| 43 | $(TARGET_libgreputils)
|
---|
| 44 | TEMPLATE_greputils_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
|
---|
| 45 | $(PATH_TARGET)/config.h
|
---|
| 46 |
|
---|
| 47 | #
|
---|
| 48 | # libgreputils
|
---|
| 49 | #
|
---|
| 50 | LIBRARIES += libgreputils
|
---|
| 51 | libgreputils_TEMPLATE = greputils
|
---|
| 52 | libgreputils_NOINST = true
|
---|
| 53 | libgreputils_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 | #
|
---|
| 69 | PROGRAMS += grep
|
---|
| 70 | grep_TEMPLATE = greputils
|
---|
| 71 | grep_INST = usr/bin/grep$(SUFF_EXE) usr/bin/egrep$(SUFF_EXE) usr/bin/fgrep$(SUFF_EXE)
|
---|
| 72 | grep_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 |
|
---|
| 85 | include $(PATH_KBUILD)/footer.kmk
|
---|
| 86 |
|
---|