source: trunk/src/sed/Makefile.kmk@ 605

Last change on this file since 605 was 605, checked in by bird, 19 years ago

Build on linux.

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1# $Id: $
2
3
4DEPTH = ../..
5include $(PATH_KBUILD)/header.kmk
6
7#
8# kmk_sed
9#
10PROGRAMS += kmk_sed
11
12kmk_sed_TEMPLATE = BIN
13kmk_sed_DEPS = \
14 $(PATH_TARGET)/config.h \
15 $(PATH_TARGET)/regex.h
16kmk_sed_INCS = \
17 $(PATH_TARGET) \
18 . \
19 lib \
20 intl
21kmk_sed_DEFS = \
22 HAVE_CONFIG_H
23kmk_sed_SOURCES = \
24 sed/sed.c \
25 sed/compile.c \
26 sed/execute.c \
27 sed/regexp.c \
28 sed/fmt.c \
29 sed/mbcs.c \
30 lib/getopt1.c \
31 lib/getopt.c \
32 lib/utils.c \
33 lib/regex.c
34ifeq ($(filter-out win32 win64 win nt,$(BUILD_TARGET)),)
35kmk_SOURCES +=
36endif
37
38
39include $(PATH_KBUILD)/footer.kmk
40
41#
42# Use checked in config.h instead of running ./configure for it.
43#
44config.h.$(BUILD_TARGET) := config.h.$(BUILD_TARGET)
45config.h.win32 := config.h.win
46config.h.win64 := config.h.win
47config.h.nt := config.h.win
48
49$(PATH_TARGET)/config.h: $(config.h.$(BUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET))
50 $(CP) $^ $@
51
52#
53# Use the regex lib shipped with sed and not anything installed on the system.
54#
55$(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
56 $(CP) $^ $@
57
Note: See TracBrowser for help on using the repository browser.