From b6ed8892bb2fd1b34dec12dc633a26732c46dcd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Sat, 21 Jan 2017 14:58:00 +0100 Subject: [PATCH] Add generation of emulation.h to Makefile. --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index fcc95a1..a1f9398 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,6 +10,7 @@ LDFLAGS_CLI=-lreadline CFLAGS=-Wall -fpic -g 65C02ISA=65c02isa +EMULATION=emulation all : $(LIB_SO) $(LIB_STATIC) $(CLI) @@ -25,12 +26,15 @@ $(LIB_STATIC) : $(OBJS) $(65C02ISA).h : $(65C02ISA).csv $(65C02ISA).awk awk -f $(65C02ISA).awk $(65C02ISA).csv > $(65C02ISA).h +$(EMULATION).h : $(65C02ISA).csv $(EMULATION).awk + awk -f $(EMULATION).awk $(65C02ISA).csv > $(EMULATION).h + # XXX: dependency on 65c02isa.h is only for instruction.c ? -%.o : %.c %.h $(65C02ISA).h +%.o : %.c %.h $(65C02ISA).h $(EMULATION).h $(CC) $(CFLAGS) -c $< clean : - rm -f $(65C02ISA).h + rm -f $(65C02ISA).h $(EMULATION).h rm -f $(LIB_OBJS) $(CLI_OBJS) rm -f $(LIB_SO) $(LIB_STATIC) $(CLI)