diff options
| author | Duncan Smith | 2010-09-10 18:16:29 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-10 18:16:29 -0700 |
| commit | 9313585a96c694b74c9df9d2b0afc06016613e4c (patch) | |
| tree | 22b64f03d697d0814e3c245c9a5c6e243fc449ab /Makefile | |
| parent | 9720a70bb6ca148cd7e333049a74cb86792ee79b (diff) | |
Trying to get the zexdoc testbench to run.
Now, at least, it's integrated into the build system and will be
automatically included in built executables.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,12 +1,21 @@ ASM_FILES=alu.asm flags.asm opcodes.asm ports.asm interrupts.asm main.asm ASM=main.asm C_FILES=loader.c bankswap.c video.c misc.c debug.c +MADE_FILES=testbenches/zexdoc.h TIGCCFLAGS=-Wall CFLAGS=-Wall -ltifiles -z680.89z: $(ASM_FILES) $(C_FILES) +z680.89z: $(ASM_FILES) $(C_FILES) $(MADE_FILES) tigcc $(TIGCCFLAGS) $(ASM) $(C_FILES) -o z680.89z packager: packager.c gcc $(CFLAGS) packager.c -o packager + +testbenches/zexdoc.h: testbenches/zexdoc.bin + echo 'char zexdoc[] = {' > testbenches/zexdoc.h + hexdump -v -e '12/1 "0x%02x, "' -e '"\n"' testbenches/zexdoc.bin | sed -e 's/0x *,//g' >> testbenches/zexdoc.h + echo '};' >> testbenches/zexdoc.h + +testbenches/zexdoc.bin: testbenches/zexdoc.z80 + spasm testbenches/zexdoc.z80 |
