Driver porting: compiling external modules
Posted Jul 11, 2004 6:23 UTC (Sun) by kcannon
Parent article: Driver porting: compiling external modules
It's probably better to use $(CURDIR) in the Makefile rather than $(PWD). $(PWD) is set to the directory from which the original make command was issued, while $(CURDIR) is set to the current working directory (eg. as modified by recursive use of make -C). If the driver modules are distributed in a subdirectory of a larger software package, and the user is intended to issue a make command from the top-level directory, using $(PWD) in the driver Makefile will pick up the wrong path.
to post comments)