# $Id: Makefile.kmk 1152 2007-09-27 23:42:58Z bird $ DEPTH = ../.. include $(PATH_KBUILD)/header.kmk # # kmk_sed # PROGRAMS += kmk_sed kmk_sed_TEMPLATE = BIN kmk_sed_DEPS = \ $(PATH_TARGET)/config.h \ $(PATH_TARGET)/regex.h kmk_sed_CLEAN = $(kmk_sed_DEPS) kmk_sed_INCS = \ $(PATH_TARGET) \ . \ lib \ intl kmk_sed_DEFS = \ HAVE_CONFIG_H kmk_sed_SOURCES = \ sed/sed.c \ sed/compile.c \ sed/execute.c \ sed/regexp.c \ sed/fmt.c \ sed/mbcs.c \ lib/getopt1.c \ lib/getopt.c \ lib/utils.c \ lib/regex.c kmk_sed_SOURCES.darwin = \ lib/strverscmp.c \ lib/obstack.c \ lib/getline.c kmk_sed_SOURCES.freebsd = \ lib/strverscmp.c \ lib/obstack.c \ lib/getline.c kmk_sed_SOURCES.solaris = \ lib/strverscmp.c \ lib/obstack.c \ lib/getline.c kmk_sed_SOURCES.win = \ lib/strverscmp.c \ lib/obstack.c \ lib/mkstemp.c \ lib/getline.c \ ../lib/startuphacks-win.c include $(PATH_KBUILD)/footer.kmk # # Use checked in config.h instead of running ./configure for it. # config.h.$(BUILD_TARGET) := config.h.$(BUILD_TARGET) $(PATH_TARGET)/config.h: $(config.h.$(BUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET)) $(CP) $^ $@ # # Use the regex lib shipped with sed and not anything installed on the system. # $(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET)) $(CP) $^ $@