Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# $Id: Makefile 2 2024-08-28 08:12:18Z nishi $
PWD = `pwd`
PLATFORM = generic
FLAGS= PWD=$(PWD) PLATFORM=$(PLATFORM)
include Platform/$(PLATFORM).mk
.PHONY: all clean emulator rom ./Emulator ./ROM format
all: emulator rom
emulator: ./Emulator
rom: ./ROM
./Emulator::
$(MAKE) -C $@ $(FLAGS)
./ROM::
$(MAKE) -C $@ $(FLAGS)
format:
clang-format --verbose -i `find Emulator -name "*.c" -or -name "*.h"`
clean:
$(MAKE) -C ./Emulator $(FLAGS) clean
$(MAKE) -C ./ROM $(FLAGS) clean