From 2750ba9b137eb06f47396edfeb48b450c8987b52 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 21 May 2019 20:31:29 -0400 Subject: [PATCH] pt3: might as well add a Makefile --- pt3_player/table_gen/Makefile | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pt3_player/table_gen/Makefile diff --git a/pt3_player/table_gen/Makefile b/pt3_player/table_gen/Makefile new file mode 100644 index 00000000..bc6fbfb5 --- /dev/null +++ b/pt3_player/table_gen/Makefile @@ -0,0 +1,38 @@ +CC = gcc +CFLAGS = -O2 -Wall +LFLASG = + +all: 6502_table table_gen z80_table + +### + +6502_table: 6502_table.o + $(CC) $(LFLASG) -o 6502_table 6502_table.o + +6502_table.o: 6502_table.c + $(CC) $(CFLAGS) -c 6502_table.c + +### + +table_gen: table_gen.o + $(CC) $(LFLAGS) -o table_gen table_gen.o + +table_gen.o: table_gen.c + $(CC) $(CFLAGS) -c table_gen.c + +### + +z80_table: z80_table.o + $(CC) $(LFLAGS) -o z80_table z80_table.o + +z80_table.o: z80_table.c + $(CC) $(CFLAGS) -c z80_table.c + +### + +clean: + rm -f *~ *.o z80_table table_gen 6502_table + + + +