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 |
|
---|
27 | DEPTH = ../../..
|
---|
28 | include $(PATH_KBUILD)/header.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # patch
|
---|
32 | #
|
---|
33 | PROGRAMS += patch
|
---|
34 | patch_TEMPLATE = usr.bin
|
---|
35 | patch_DEFS = HAVE_CONFIG_H ed_PROGRAM=\"ed\"
|
---|
36 | patch_INCS = $(PATH_TARGET)
|
---|
37 | patch_CFLAGS = -std=gnu99
|
---|
38 | patch_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 |
|
---|
58 | patch_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 | #
|
---|
70 | INSTALLS += patch.man
|
---|
71 | patch.man_TEMPLATE = usr.bin.man
|
---|
72 | patch.man_SOURCES = \
|
---|
73 | patch.man=>patch.1
|
---|
74 |
|
---|
75 | include $(PATH_KBUILD)/footer.kmk
|
---|
76 |
|
---|