Subversion Repositories Krakow BASIC

Rev

Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 18
Line 1... Line 1...
1
# $Id: Makefile 7 2024-09-04 00:18:36Z nishi $
1
# $Id: Makefile 18 2024-09-04 15:51:38Z nishi $
2
 
2
 
3
PLATFORM = generic
3
PLATFORM = generic
4
PWD = `pwd`
4
PWD = `pwd`
5
FLAGS = PLATFORM=$(PLATFORM) PWD=$(PWD)
5
FLAGS = PLATFORM=$(PLATFORM) PWD=$(PWD)
6
 
6
 
7
.PHONY: all format clean
7
.PHONY: all format clean get-version
8
 
8
 
9
all: ./BASIC
9
all: ./BASIC
10
 
10
 
11
./BASIC::
11
./BASIC::
12
	$(MAKE) -C $@ $(FLAGS)
12
	$(MAKE) -C $@ $(FLAGS)
13
 
13
 
14
format:
14
format:
15
	clang-format --verbose -i BASIC/basic.c
15
	clang-format --verbose -i BASIC/basic.c
16
 
16
 
-
 
17
get-version:
-
 
18
	@grep "#define VERSION" BASIC/basic.c | sed -E 's/^#define VERSION "|"$$//g'
-
 
19
 
17
clean:
20
clean:
18
	$(MAKE) -C ./BASIC $(FLAGS) clean
21
	$(MAKE) -C ./BASIC $(FLAGS) clean
19
	rm -f krakow.dsk
22
	rm -f krakow.dsk