Subversion Repositories Shiroi

Rev

Rev 2 | 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 43 2024-09-02 13:04:22Z 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:
43 nishi 24
	clang-format --verbose -i `find Emulator -name "*.c" -or -name "*.h"` ROM/basic.c
1 nishi 25
 
26
clean:
27
	$(MAKE) -C ./Emulator $(FLAGS) clean
28
	$(MAKE) -C ./ROM $(FLAGS) clean