VirtualBox

source: kBuild/trunk/src/sed/Makefile.kmk@ 2434

Last change on this file since 2434 was 2434, checked in by bird, 14 years ago

kBuild: Deprecating PATH_<target> and <target>_PATH in favor of <target>_0_OUTDIR and <target>_DEFPATH.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 2434 2011-01-09 17:45:08Z bird $
2## @file
3# Sub-Makefile for kmk_sed.
4#
5
6#
7# Copyright (c) 2006-2010 knut st. osmundsen <[email protected]>
8#
9# This file is part of kBuild.
10#
11# kBuild 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 3 of the License, or
14# (at your option) any later version.
15#
16# kBuild 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 kBuild. If not, see <http://www.gnu.org/licenses/>
23#
24#
25
26SUB_DEPTH = ../..
27include $(KBUILD_PATH)/subheader.kmk
28
29#
30# kmk_sed
31#
32PROGRAMS += kmk_sed
33
34kmk_sed_TEMPLATE = BIN
35kmk_sed_DEPS = \
36 $(kmk_sed_0_OUTDIR)/config.h \
37 $(kmk_sed_0_OUTDIR)/regex.h
38kmk_sed_CLEAN = $(kmk_sed_DEPS)
39kmk_sed_INCS = \
40 $(kmk_sed_0_OUTDIR) \
41 . \
42 lib \
43 intl
44kmk_sed_DEFS = \
45 HAVE_CONFIG_H
46kmk_sed_SOURCES = \
47 sed/sed.c \
48 lib/regex.c \
49 sed/compile.c \
50 sed/execute.c \
51 sed/regexp.c \
52 sed/fmt.c \
53 sed/mbcs.c \
54 lib/getopt1.c \
55 lib/getopt.c \
56 lib/utils.c
57kmk_sed_SOURCES.darwin = \
58 lib/strverscmp.c \
59 lib/obstack.c \
60 lib/getline.c
61kmk_sed_SOURCES.dragonfly = \
62 lib/strverscmp.c \
63 lib/obstack.c \
64 lib/getline.c
65kmk_sed_SOURCES.freebsd = \
66 lib/strverscmp.c \
67 lib/obstack.c \
68 lib/getline.c
69kmk_sed_SOURCES.openbsd = \
70 lib/strverscmp.c \
71 lib/obstack.c \
72 lib/getline.c
73kmk_sed_SOURCES.solaris = \
74 lib/strverscmp.c \
75 lib/obstack.c \
76 lib/getline.c
77kmk_sed_SOURCES.win = \
78 lib/strverscmp.c \
79 lib/obstack.c \
80 lib/mkstemp.c \
81 lib/getline.c \
82 ../lib/startuphacks-win.c
83
84include $(FILE_KBUILD_SUB_FOOTER)
85
86#
87# Use checked in config.h instead of running ./configure for it.
88#
89kmk_sed_config.h.$(KBUILD_TARGET) := $(kmk_sed_DEFPATH)/config.h.$(KBUILD_TARGET)
90
91$(kmk_sed_0_OUTDIR)/config.h: $(kmk_sed_config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(kmk_sed_0_OUTDIR))
92 $(CP) -f $^ $@
93
94#
95# Use the regex lib shipped with sed and not anything installed on the system.
96#
97$(kmk_sed_0_OUTDIR)/regex.h: $(kmk_sed_DEFPATH)/lib/regex_.h | $(call DIRDEP,$(kmk_sed_0_OUTDIR))
98 $(CP) -f $^ $@
99
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette