Use built-in $(CURDIR) instead of $(shell pwd).

A comparison on Linux (Debian) with bash follows. Don't have access to
Cygwin to test this. "linkedrec" is a symlink to "non-rec".

--Makefile--
SHELL := /bin/bash

$(info CURDIR            $(CURDIR))
$(info PWD               $(PWD))
$(info shell echo `pwd`  $(shell echo `pwd`))
$(info shell pwd         $(shell pwd))
$(error testing)

--Output--
make -krj5 -C subdir all
CURDIR            /home/t/src/ideas/non-rec/subdir
PWD               /home/t/src/ideas/linkedrec
shell echo `pwd`  /home/t/src/ideas/non-rec/subdir
shell pwd         /home/t/src/ideas/non-rec/subdir
make: Entering directory `/home/t/src/ideas/non-rec/subdir'
../mk/Makefile:7: *** testing.  Stop.
make: Leaving directory `/home/t/src/ideas/non-rec/subdir'