Subversion Repositories Shiroi

Rev

Rev 2 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# $Id: Makefile 43 2024-09-02 13:04:22Z 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"` ROM/basic.c

clean:
        $(MAKE) -C ./Emulator $(FLAGS) clean
        $(MAKE) -C ./ROM $(FLAGS) clean