--- __redodiff__/Makefile.orig 2005-06-21 14:45:57.362005525 +0200 +++ __redodiff__/Makefile 2005-06-21 14:45:57.390998367 +0200 @@ -1247,9 +1247,15 @@ kernelrelease: # FIXME Should go into a make.lib or something # =========================================================================== +IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no) + quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-dirs))) +ifeq ($(IS_CYGWIN),yes) + cmd_rmdirs = for i in $(rm-dirs); do rm -rf $$i || echo "error removing $$i" ; done +else cmd_rmdirs = rm -rf $(rm-dirs) +endif quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))) cmd_rmfiles = rm -f $(rm-files) --- __redodiff__/scripts/Makefile.host.orig 2005-06-21 14:45:57.383000341 +0200 +++ __redodiff__/scripts/Makefile.host 2005-06-21 14:45:57.395997133 +0200 @@ -78,9 +78,17 @@ obj-dirs := $(addprefix $(obj)/,$ ##### # Handle options to gcc. Support building with separate output directory -_hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS_$(*F).o) +IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no) + +ifeq ($(IS_CYGWIN),yes) + _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -I$(ELINOS_PREFIX)/include $(HOSTCFLAGS_$(*F).o) +else + _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS_$(*F).o) +endif + _hostcxx_flags = $(HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) $(HOSTCXXFLAGS_$(*F).o) + ifeq ($(KBUILD_SRC),) __hostc_flags = $(_hostc_flags) __hostcxx_flags = $(_hostcxx_flags) --- __redodiff__/scripts/kconfig/Makefile.org 2005-06-17 21:48:29.000000000 +0200 +++ __redodiff__/scripts/kconfig/Makefile 2005-07-05 10:29:05.000000000 +0200 @@ -84,6 +84,13 @@ mconf-objs := mconf.o zconf.tab.o kxgettext-objs := kxgettext.o zconf.tab.o +IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no) + +ifeq ($(IS_CYGWIN),yes) + HOSTLOADLIBES_conf := -L/lib -lintl + HOSTLOADLIBES_mconf := -L/lib -lintl +endif + ifeq ($(MAKECMDGOALS),xconfig) qconf-target := 1 endif