Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-04-10 07:51:39 +0400
committerChristopher Faylor <me@cgf.cx>2000-04-10 07:51:39 +0400
commitba87a619efd35c5e6655a3b3c3939340a22ddf94 (patch)
treedac58771334842f5333e629479bfa7e5fa1ab93d /winsup
parentda7185af445fdfae7d2c500c832818dfb24dce2f (diff)
* Makefile.common: Resolve srcdir to absolute path or it will confuse usages
when passed to submakes. Eliminate vestigal use of MAKEOVERRIDES.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/ChangeLog6
-rw-r--r--winsup/Makefile.common9
2 files changed, 11 insertions, 4 deletions
diff --git a/winsup/ChangeLog b/winsup/ChangeLog
index ce5cad35c..c400d0a18 100644
--- a/winsup/ChangeLog
+++ b/winsup/ChangeLog
@@ -1,3 +1,9 @@
+Sun Apr 9 23:47:45 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * Makefile.common: Resolve srcdir to absolute path or it will confuse
+ usages when passed to submakes. Eliminate vestigal use of
+ MAKEOVERRIDES.
+
Sun Apr 9 02:06:49 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.in: Work around MAKEOVERRIDES problem with older versions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index 661a4d77e..8075188ec 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -14,7 +14,8 @@ CFLAGS_COMMON:=-Wall -Wwrite-strings # -finline-functions
MALLOC_DEBUG:=#-DMALLOC_DEBUG -I/gotham/src/comp-tools/winsup/dlmalloc
MALLOC_OBJ:=#/gotham/src/comp-tools/winsup/dlmalloc/malloc.o
-ifeq (,${findstring /,$(srcdir)})
+override srcdir:=${shell cd $(srcdir); /bin/pwd}
+ifneq (,${filter-out /%,$(srcdir)})
updir:=$(srcdir)/..
updir1:=$(updir)/..
else
@@ -28,7 +29,7 @@ endif
pwd:=${shell pwd}
-ifeq (,${findstring /,$(pwd)})
+ifneq (,${filter-out /%,$(pwd)})
bupdir:=..
bupdir1:=../..
else
@@ -115,10 +116,10 @@ else
endif
$(bupdir1)/libiberty/%.o: $(updir1)/libiberty/%.c
- @$(MAKE) -C $(@D) $(MAKEOVERRIDES) $(@F)
+ @$(MAKE) -C $(@D) $(@F)
$(w32api_lib)/%.a: $(w32api_lib)/Makefile
- @$(MAKE) --no-print-dir -C $(@D) $(MAKEOVERRIDES) $(@F)
+ @$(MAKE) --no-print-dir -C $(@D) $(@F)
all: