Subversion Repositories Shiroi

Rev

Rev 43 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 56 2024-09-03 11:23:39Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
6
FLAGS= PWD=$(PWD) PLATFORM=$(PLATFORM)
7
 
8
include Platform/$(PLATFORM).mk
9
 
56 nishi 10
.PHONY: all fetch clean emulator rom ./Emulator ./ROM format
1 nishi 11
 
12
all: emulator rom
13
 
56 nishi 14
fetch:
15
	wget -O ROM/basic.c http://svn.nishi.boats/repo/krakow/trunk/BASIC/basic.c
16
 
1 nishi 17
emulator: ./Emulator
18
rom: ./ROM
19
 
20
./Emulator::
21
	$(MAKE) -C $@ $(FLAGS)
22
 
23
./ROM::
24
	$(MAKE) -C $@ $(FLAGS)
25
 
26
format:
43 nishi 27
	clang-format --verbose -i `find Emulator -name "*.c" -or -name "*.h"` ROM/basic.c
1 nishi 28
 
29
clean:
30
	$(MAKE) -C ./Emulator $(FLAGS) clean
31
	$(MAKE) -C ./ROM $(FLAGS) clean