diff options
| author | Duncan Smith | 2010-11-15 23:21:10 -0800 |
|---|---|---|
| committer | Duncan Smith | 2010-11-15 23:21:10 -0800 |
| commit | 7c530c33af561a63b5bc6be19899594fd84f99dd (patch) | |
| tree | c2ba39b535e353e4559222647f4f8a837f50337e /Makefile | |
| parent | 83443a0386075cdb7e49f16de43ce43baa9616f7 (diff) | |
Now I can m4ify any .asm file without having to modify the Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
