VirtualBox

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

Last change on this file was 3062, checked in by bird, 7 years ago

netbsd patches from Uwe. Messing around on arm (arm -> arm32, adding arm64); Adding GNU/kFreeBSD and GNU/kNetBSD to the OS list. Added SuperH to archs. Recognize ppc64le as ppc64 in env.sh. Misc.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 3062 2017-09-30 11:26:21Z 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_CFLAGS.solaris = -std=gnu99
40kmk_sed_INCS = \
41 $(kmk_sed_0_OUTDIR) \
42 . \
43 lib \
44 intl
45kmk_sed_DEFS = \
46 HAVE_CONFIG_H
47ifdef KBUILD_SOLARIS_10
48 kmk_sed_CFLAGS += -std=gnu99
49endif
50kmk_sed_SOURCES = \
51 sed/sed.c \
52 lib/regex.c \
53 sed/compile.c \
54 sed/execute.c \
55 sed/regexp.c \
56 sed/fmt.c \
57 sed/mbcs.c \
58 lib/getopt1.c \
59 lib/getopt.c \
60 lib/utils.c
61kmk_sed_SOURCES.darwin = \
62 lib/strverscmp.c \
63 lib/obstack.c \
64 lib/getline.c
65kmk_sed_SOURCES.dragonfly = \
66 lib/strverscmp.c \
67 lib/obstack.c \
68 lib/getline.c
69kmk_sed_SOURCES.freebsd = \
70 lib/strverscmp.c \
71 lib/obstack.c \
72 lib/getline.c
73kmk_sed_SOURCES.haiku = \
74 lib/strverscmp.c \
75 lib/obstack.c
76kmk_sed_SOURCES.netbsd = \
77 lib/strverscmp.c \
78 lib/obstack.c \
79 lib/getline.c
80kmk_sed_SOURCES.openbsd = \
81 lib/strverscmp.c \
82 lib/obstack.c \
83 lib/getline.c
84kmk_sed_SOURCES.solaris = \
85 lib/strverscmp.c \
86 lib/obstack.c \
87 lib/getline.c
88kmk_sed_SOURCES.win = \
89 lib/strverscmp.c \
90 lib/obstack.c \
91 lib/mkstemp.c \
92 lib/getline.c \
93 ../lib/startuphacks-win.c
94
95kmk_sed_LIBS.win = $(LIB_KUTIL) # for stdout optimizations.
96
97include $(FILE_KBUILD_SUB_FOOTER)
98
99#
100# Use checked in config.h instead of running ./configure for it.
101#
102kmk_sed_config.h.$(KBUILD_TARGET) := $(kmk_sed_DEFPATH)/config.h.$(KBUILD_TARGET)
103
104$(kmk_sed_0_OUTDIR)/config.h: $(kmk_sed_config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(kmk_sed_0_OUTDIR))
105 $(CP) -f $^ $@
106
107#
108# Use the regex lib shipped with sed and not anything installed on the system.
109#
110$(kmk_sed_0_OUTDIR)/regex.h: $(kmk_sed_DEFPATH)/lib/regex_.h | $(call DIRDEP,$(kmk_sed_0_OUTDIR))
111 $(CP) -f $^ $@
112
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