1 | # $Id: Makefile.kmk 813 2007-01-31 02:56:48Z bird $
|
---|
2 |
|
---|
3 |
|
---|
4 | DEPTH = ../..
|
---|
5 | include $(PATH_KBUILD)/header.kmk
|
---|
6 |
|
---|
7 | #
|
---|
8 | # kmk_sed
|
---|
9 | #
|
---|
10 | PROGRAMS += kmk_sed
|
---|
11 |
|
---|
12 | kmk_sed_TEMPLATE = BIN
|
---|
13 | kmk_sed_DEPS = \
|
---|
14 | $(PATH_TARGET)/config.h \
|
---|
15 | $(PATH_TARGET)/regex.h
|
---|
16 | kmk_sed_INCS = \
|
---|
17 | $(PATH_TARGET) \
|
---|
18 | . \
|
---|
19 | lib \
|
---|
20 | intl
|
---|
21 | kmk_sed_DEFS = \
|
---|
22 | HAVE_CONFIG_H
|
---|
23 | kmk_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
|
---|
34 | kmk_sed_SOURCES.darwin = \
|
---|
35 | lib/strverscmp.c \
|
---|
36 | lib/obstack.c \
|
---|
37 | lib/getline.c
|
---|
38 | kmk_sed_SOURCES.freebsd = \
|
---|
39 | lib/strverscmp.c \
|
---|
40 | lib/obstack.c \
|
---|
41 | lib/getline.c
|
---|
42 | kmk_sed_SOURCES.solaris = \
|
---|
43 | lib/strverscmp.c \
|
---|
44 | lib/obstack.c \
|
---|
45 | lib/getline.c
|
---|
46 | kmk_sed_SOURCES.win = \
|
---|
47 | lib/strverscmp.c \
|
---|
48 | lib/obstack.c \
|
---|
49 | lib/mkstemp.c \
|
---|
50 | lib/getline.c \
|
---|
51 | ../lib/startuphacks-win.c
|
---|
52 |
|
---|
53 | include $(PATH_KBUILD)/footer.kmk
|
---|
54 |
|
---|
55 | #
|
---|
56 | # Use checked in config.h instead of running ./configure for it.
|
---|
57 | #
|
---|
58 | config.h.$(BUILD_TARGET) := config.h.$(BUILD_TARGET)
|
---|
59 |
|
---|
60 | $(PATH_TARGET)/config.h: $(config.h.$(BUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET))
|
---|
61 | $(CP) $^ $@
|
---|
62 |
|
---|
63 | #
|
---|
64 | # Use the regex lib shipped with sed and not anything installed on the system.
|
---|
65 | #
|
---|
66 | $(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
|
---|
67 | $(CP) $^ $@
|
---|
68 |
|
---|