Subversion Repositories Shiroi

Rev

Rev 1 | Rev 43 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 2 2024-08-28 08:12:18Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
6
FLAGS= PWD=$(PWD) PLATFORM=$(PLATFORM)
7
 
8
include Platform/$(PLATFORM).mk
9
 
10
.PHONY: all clean emulator rom ./Emulator ./ROM format
11
 
12
all: emulator rom
13
 
14
emulator: ./Emulator
15
rom: ./ROM
16
 
17
./Emulator::
18
	$(MAKE) -C $@ $(FLAGS)
19
 
20
./ROM::
21
	$(MAKE) -C $@ $(FLAGS)
22
 
23
format:
2 nishi 24
	clang-format --verbose -i `find Emulator -name "*.c" -or -name "*.h"`
1 nishi 25
 
26
clean:
27
	$(MAKE) -C ./Emulator $(FLAGS) clean
28
	$(MAKE) -C ./ROM $(FLAGS) clean