summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAstrid Smith2010-11-15 23:21:10 -0800
committerAstrid Smith2010-11-15 23:21:10 -0800
commit2c14dd161513f3715bacd8f70b1decfab80338be (patch)
treed7d347a7a2e9de53b1ef1ea68d98e2b4b996e525 /Makefile
parent461d2fed8ecd25104dd983df8655f347360b57de (diff)
Now I can m4ify any .asm file without having to modify the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a2863d7..5d9984a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ OBJ=z680k.89z
TIGCCFLAGS=-Wall -WA,-lz680k.listing
CFLAGS=-Wall -ltifiles
+M4_ASM_INCLUDES=opcodes.inc.m4
.PHONY: clean
@@ -23,8 +24,8 @@ clean:
packager: packager.c
gcc $(CFLAGS) packager.c -o packager
-opcodes.asm: opcodes.inc.m4 opcodes.asm.m4
- m4 opcodes.inc.m4 opcodes.asm.m4 > opcodes.asm
+%.asm: %.asm.m4
+ m4 $(M4_ASM_INCLUDES) $< > $@
testbenches/zexdoc.h: testbenches/zexdoc.bin
echo 'char zexdoc[] = {' > testbenches/zexdoc.h