makefile: Use CURDIR so that make -C behaves as expected