When compiling a file in a different directory than the working directory as defined by $PWD, the include macros should include files relative to the path of the file. Here is a minimal example.
$ cat src/main.c
#include "ti84pce.inc"
.org userMem - 2
.db tExtTok, tAsm84CeCmp
ret
$ ls -R
.:
src
./src:
main.asm ti84pce.inc
$ spasm -E src/main.asm main.8xp
Pass one...
src/main.aam:1: error: "ti84pce.inc: No such file or directory
src/main.asm:1: error SE001: Could not find the file '"ti84pce.inc'
When compiling a file in a different directory than the working directory as defined by $PWD, the include macros should include files relative to the path of the file. Here is a minimal example.