Try adding the following to your
$CURDIR is an environment variable pointing to the current directory, which relative to the
.cdef file is the component’s directory.
cflags part is so that the any header files in
/Sourse are accessible to the compiler.
Hope this helps.