Mercurial > repos > blastem
changeset 2605:b63059c1921c
Use grouped targets to specify that CPU dsl rules produce both .c and .h files
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 13 Feb 2025 23:08:56 -0800 |
parents | c768bbd912f1 |
children | 486e07a62469 |
files | Makefile |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Feb 13 23:07:31 2025 -0800 +++ b/Makefile Thu Feb 13 23:08:56 2025 -0800 @@ -372,12 +372,12 @@ vos_prog_info : $(OBJDIR)/vos_prog_info.o $(OBJDIR)/vos_program_module.o $(CC) -o $@ $^ $(OPT) -m68k.c : m68k.cpu cpu_dsl.py - ./cpu_dsl.py -d call $< > $@ +m68k.c m68k.h &: m68k.cpu cpu_dsl.py + ./cpu_dsl.py -d call $< > m68k.c .PRECIOUS: %.c -%.c : %.cpu cpu_dsl.py - ./cpu_dsl.py -d $(Z80_DISPATCH) $< > $@ +%.c %.h &: %.cpu cpu_dsl.py + ./cpu_dsl.py -d $(Z80_DISPATCH) $< > $(shell echo $@ | sed -E 's/\.[ch]$$/./')c %.db.c : %.db sed $< -e 's/"/\\"/g' -e 's/^\(.*\)$$/"\1\\n"/' -e'1s/^\(.*\)$$/const char $(shell echo $< | tr '.' '_')_data[] = \1/' -e '$$s/^\(.*\)$$/\1;/' > $@