rampa069 / sdcc-cpm-template

Template to compile Z80/Z180/EZ80 CPM programs with sdcc
13 stars 1 forks source link

Seem to be missing cpm0.s #1

Open rodb70 opened 4 years ago

rodb70 commented 4 years ago

make COMPILER_PREFIX=/usr gcc -O2 lsrc//load.c -o lbin//load gcc -O2 lsrc//binpak.c -o lbin//binpak /usr/bin/sdcc -c -mz80 -DSDCC=1 -Isrc//include -Isrc/ -o bin/ src//syslib/cprintf.c make: *** No rule to make target 'src//cpm/cpm0.rel', needed by 'bin//cpm0.rel'. Stop.

staticmem commented 4 years ago

I had the same issue. I copied the missing "cpm0.s" file from another Github project located here: https://github.com/hkzlab/sdcc-cpm-example/tree/master/src/cpm/ and placed it into the "src/cpm/" directory. Then do a "make clean" flowed by "make"

I seem to recall the first time it still failed to build so I ran the assembler manually in the root of the project directory to assemble the file concerned:

/usr/bin/sdasz80 -plosff src/cpm/cpm0.s

Not sure why I needed to do that though.