3 # Sub-Makefile for kmk_sed.
7 # Copyright (c) 2006-2010 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
9 # This file is part of kBuild.
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.
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.
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/>
27 include $(KBUILD_PATH
)/subheader.kmk
34 kmk_sed_TEMPLATE
= BIN
36 $(kmk_sed_0_OUTDIR
)/config.h \
37 $(kmk_sed_0_OUTDIR
)/regex.h
38 kmk_sed_CLEAN
= $(kmk_sed_DEPS
)
39 kmk_sed_CFLAGS.solaris
= -std
=gnu99
47 ifdef KBUILD_SOLARIS_10
48 kmk_sed_CFLAGS
+= -std
=gnu99
61 kmk_sed_SOURCES.darwin
= \
65 kmk_sed_SOURCES.dragonfly
= \
69 kmk_sed_SOURCES.freebsd
= \
73 kmk_sed_SOURCES.haiku
= \
76 kmk_sed_SOURCES.netbsd
= \
80 kmk_sed_SOURCES.openbsd
= \
84 kmk_sed_SOURCES.solaris
= \
88 kmk_sed_SOURCES.win
= \
93 ..
/lib
/startuphacks-win.c
95 kmk_sed_LIBS.win
= $(LIB_KUTIL
) # for stdout optimizations.
97 include $(FILE_KBUILD_SUB_FOOTER
)
100 # Use checked in config.h instead of running ./configure for it.
102 kmk_sed_config.h.
$(KBUILD_TARGET
) := $(kmk_sed_DEFPATH
)/config.h.
$(KBUILD_TARGET
)
104 $(kmk_sed_0_OUTDIR
)/config.h
: $(kmk_sed_config.h.
$(KBUILD_TARGET
)) |
$(call DIRDEP
,$(kmk_sed_0_OUTDIR
))
108 # Use the regex lib shipped with sed and not anything installed on the system.
110 $(kmk_sed_0_OUTDIR
)/regex.h
: $(kmk_sed_DEFPATH
)/lib
/regex_.h |
$(call DIRDEP
,$(kmk_sed_0_OUTDIR
))