Skip to content

Commit

Permalink
Make bench program buildable and update git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Rsysz committed Jan 8, 2021
1 parent 11051f2 commit f77830b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Git Submodules
SUBMODULES = \
gbit

GIT_SUBMODULES := $(shell git submodule update --init $(SUBMODULES))

# Flags
CFLAGS = -std=gnu99 -O2 -Wall -Wextra
LDFLAGS = -lm

Expand Down Expand Up @@ -50,9 +57,9 @@ $(OUT)/cpu_instrs.h: tests/cpu_instrs.gb tests/rom2h.c
$(Q)$(CC) -o $(OUT)/rom2h tests/rom2h.c
@$(OUT)/rom2h

$(OUT)/bench: $(OUT)/cpu_instrs.h prof.h cpu.c bench.c gameboy.h
$(OUT)/bench: gbit/lib/tester.c gbit/lib/ref_cpu.c gbit/lib/inputstate.c gbit/lib/disassembler.c
$(VECHO) " CC+LD\t$@\n"
$(Q)$(CC) -DENABLE_LCD=0 -o $@ cpu.c bench.c
$(Q)$(CC) -DENABLE_LCD=0 -DDEBUG -o $@ cpu.c bench.c $^

# Download Game Boy ROMs with full source
download_rom:
Expand Down

0 comments on commit f77830b

Please sign in to comment.