VirtualBox

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

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

copyright and email updates.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
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
34kmk_sed_SOURCES.darwin += \
35 lib/strverscmp.c \
36 lib/obstack.c \
37 lib/getline.c
38kmk_sed_SOURCES.freebsd += \
39 lib/strverscmp.c \
40 lib/obstack.c \
41 lib/getline.c
42ifeq ($(filter-out win32 win64 win nt,$(BUILD_TARGET)),)
43kmk_sed_SOURCES += \
44 lib/strverscmp.c \
45 lib/obstack.c \
46 lib/mkstemp.c \
47 lib/getline.c \
48 ../lib/startuphacks-win.c
49endif
50
51include $(PATH_KBUILD)/footer.kmk
52
53#
54# Use checked in config.h instead of running ./configure for it.
55#
56config.h.$(BUILD_TARGET) := config.h.$(BUILD_TARGET)
57config.h.win32 := config.h.win
58config.h.win64 := config.h.win
59config.h.nt := config.h.win
60
61$(PATH_TARGET)/config.h: $(config.h.$(BUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET))
62 $(CP) $^ $@
63
64#
65# Use the regex lib shipped with sed and not anything installed on the system.
66#
67$(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
68 $(CP) $^ $@
69
Note: See TracBrowser for help on using the repository browser.

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