source: trunk/essentials/sys-devel/patch/kNIX-bootstrap.kmk@ 3481

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

initial patch config.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3458 2007-06-16 19:34:42Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for patch
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# patch
32#
33PROGRAMS += patch
34patch_TEMPLATE = usr.bin
35patch_DEFS = HAVE_CONFIG_H ed_PROGRAM=\"ed\"
36patch_INCS = $(PATH_TARGET)
37patch_CFLAGS = -std=gnu99
38patch_SOURCES = \
39 addext.c \
40 argmatch.c \
41 backupfile.c \
42 basename.c \
43 dirname.c \
44 getopt.c \
45 getopt1.c \
46 inp.c \
47 maketime.c \
48 partime.c \
49 patch.c \
50 pch.c \
51 quote.c \
52 quotearg.c \
53 quotesys.c \
54 util.c \
55 version.c \
56 xmalloc.c
57
58patch_ORDERDEPS = \
59 $(PATH_TARGET)/config.h
60
61#
62# config.h
63#
64$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
65 $(INSTALL) $< $@
66
67#
68# The manual page.
69#
70INSTALLS += patch.man
71patch.man_TEMPLATE = usr.bin.man
72patch.man_SOURCES = \
73 patch.man=>patch.1
74
75include $(PATH_KBUILD)/footer.kmk
76
Note: See TracBrowser for help on using the repository browser.