Thanks, Stephen it works. Now, I'm gettng the "executable file not found in $PATH" error, despite that I'm having the following line in rules: export PATH := $(CURDIR)/$(BUILD_DIR)/bin:$(PATH) What's wrong?