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:
parent
1802bfbd1d
commit
b6ed8892bb
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user