1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Add generation of emulation.h to Makefile.

This commit is contained in:
Radosław Kujawa 2017-01-21 14:58:00 +01:00
parent 1802bfbd1d
commit b6ed8892bb

View File

@ -10,6 +10,7 @@ LDFLAGS_CLI=-lreadline
CFLAGS=-Wall -fpic -g CFLAGS=-Wall -fpic -g
65C02ISA=65c02isa 65C02ISA=65c02isa
EMULATION=emulation
all : $(LIB_SO) $(LIB_STATIC) $(CLI) all : $(LIB_SO) $(LIB_STATIC) $(CLI)
@ -25,12 +26,15 @@ $(LIB_STATIC) : $(OBJS)
$(65C02ISA).h : $(65C02ISA).csv $(65C02ISA).awk $(65C02ISA).h : $(65C02ISA).csv $(65C02ISA).awk
awk -f $(65C02ISA).awk $(65C02ISA).csv > $(65C02ISA).h 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 ? # 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 $< $(CC) $(CFLAGS) -c $<
clean : clean :
rm -f $(65C02ISA).h rm -f $(65C02ISA).h $(EMULATION).h
rm -f $(LIB_OBJS) $(CLI_OBJS) rm -f $(LIB_OBJS) $(CLI_OBJS)
rm -f $(LIB_SO) $(LIB_STATIC) $(CLI) rm -f $(LIB_SO) $(LIB_STATIC) $(CLI)