I am trying to use vpath in my Makefile to avoid prefixing every source file with directory name. But I can\'t get it to work properly.
Here\'s the Makefile:
The vpath directive only controls how Make finds dependencies; it doesn't affect in any way how GCC works. If you have headers in some other directory, you explicitly need to tell GCC with -I:
vpath
-I
INCLUDE := include $(CC) -I$(INCLUDE) $c $< -o $@