source: trunk/essentials/sys-apps/diffutils/kNIX-bootstrap.kmk@ 3079

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

diffutils config.

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3045 2007-04-08 13:32:44Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for diffutils
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 diffutils template.
32#
33TEMPLATE_diffutils_EXTENDS = usr.bin
34TEMPLATE_diffutils_DEFS = $(TEMPLATE_usr.bin_DEFS) \
35 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
36 HAVE_CONFIG_H
37TEMPLATE_diffutils_INCS = $(TEMPLATE_usr.bin_INCS) \
38 $(PATH_TARGET) \
39 $(PATH_SUB_CURRENT) \
40 $(PATH_SUB_ROOT)/lib
41TEMPLATE_diffutils_LIBS = $(TEMPLATE_usr.bin_LIBS) \
42 $(TARGET_libdiffutils)
43TEMPLATE_diffutils_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
44 $(PATH_TARGET)/config.h \
45 $(PATH_TARGET)/fnmatch.h
46
47#
48# libdiffutils
49#
50LIBRARIES += libdiffutils
51libdiffutils_TEMPLATE = diffutils
52libdiffutils_NOINST = true
53libdiffutils_SOURCES = \
54 lib/basename.c \
55 lib/c-stack.c \
56 lib/cmpbuf.c \
57 lib/error.c \
58 lib/exclude.c \
59 lib/exitfail.c \
60 lib/freesoft.c \
61 lib/getopt.c \
62 lib/getopt1.c \
63 lib/hard-locale.c \
64 lib/imaxtostr.c \
65 lib/offtostr.c \
66 lib/prepargs.c \
67 lib/posixver.c \
68 lib/quotesys.c \
69 lib/setmode.c \
70 lib/strftime.c \
71 lib/umaxtostr.c \
72 lib/xmalloc.c \
73 lib/xstrtoumax.c \
74 \
75 lib/fnmatch.c
76
77#
78# diff
79#
80PROGRAMS += diff
81diff_TEMPLATE = diffutils
82diff_SOURCES = \
83 src/diff.c \
84 src/analyze.c \
85 src/context.c \
86 src/dir.c \
87 src/ed.c \
88 src/ifdef.c \
89 src/io.c \
90 src/normal.c \
91 src/side.c \
92 src/util.c \
93 $(PATH_TARGET)/version.c
94
95#
96# diff3
97#
98PROGRAMS += diff3
99diff3_TEMPLATE = diffutils
100diff3_SOURCES = \
101 src/diff3.c \
102 $(PATH_TARGET)/version.c
103
104#
105# diff3
106#
107PROGRAMS += sdiff
108sdiff_TEMPLATE = diffutils
109sdiff_SOURCES = \
110 src/sdiff.c \
111 $(PATH_TARGET)/version.c
112
113#
114# cmp
115#
116PROGRAMS += cmp
117cmp_TEMPLATE = diffutils
118cmp_SOURCES = \
119 src/cmp.c \
120 $(PATH_TARGET)/version.c
121
122#
123# config.h and version.c
124#
125$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
126 $(INSTALL) $< $@
127
128$(PATH_TARGET)/fnmatch.h: lib/fnmatch.hin
129 $(INSTALL) $< $@
130
131$(PATH_TARGET)/version.c:
132 $(RM) -f $@
133 $(APPEND) $@ '#include <config.h>'
134 $(APPEND) $@ 'char const version_string[] = "(GNU diffutils) 5.8.1";'
135 $(APPEND) $@ ''
136
137include $(PATH_KBUILD)/footer.kmk
138
Note: See TracBrowser for help on using the repository browser.