Subversion Repositories Krakow BASIC

Rev

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

Rev 25 Rev 29
Line 1... Line 1...
1
# $Id: Makefile 25 2024-09-04 16:09:27Z nishi $
1
# $Id: Makefile 29 2024-09-05 04:27:28Z nishi $
2
 
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
4
 
5
TARGET ?= krakow$(EXEC)
5
TARGET ?= krakow$(EXEC)
6
 
6
 
7
.PHONY: all clean
7
.PHONY: all clean
8
 
8
 
9
all: $(TARGET)
9
all: $(TARGET)
10
 
10
 
11
krakow$(EXEC): krakow$(OBJ)
11
krakow$(EXEC): krakow$(OBJ)
12
	$(LD) $(LDFLAGS) -o $@ krakow$(OBJ) $(LIBS)
12
	$(LD) $(LDFLAGS) $@ krakow$(OBJ) $(LIBS) || ( rm -f krakow$(EXEC) ; exit 1 )
-
 
13
 
-
 
14
krakow.msx.rom: krakow.msx.bin krakow.msx.ihx
-
 
15
	hex2bin -e rom krakow.msx.ihx
-
 
16
	dd if=krakow.msx.bin of=krakow.msx.rom obs=1 oseek=256 conv=notrunc
-
 
17
 
-
 
18
krakow.msx.bin: krakow$(EXEC)
-
 
19
	hex2bin -e msx.bin krakow$(EXEC)
-
 
20
 
-
 
21
krakow.msx.ihx: msx.rel
-
 
22
	sdldz80 -i $@ msx.rel
-
 
23
 
-
 
24
msx.rel: msx.s
-
 
25
	sdasz80 -o $@ msx.s
13
 
26
 
14
krakow.hex: krakow.elf
27
krakow.hex: krakow.elf
15
	objcopy -O ihex -R $(SECTION) krakow.elf $@
28
	objcopy -O ihex -R $(SECTION) krakow.elf $@
16
 
29
 
17
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
30
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
Line 20... Line 33...
20
 
33
 
21
krakow$(OBJ): basic.c
34
krakow$(OBJ): basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
35
	$(CC) $(CFLAGS) -o $@ basic.c
23
 
36
 
24
clean:
37
clean:
25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk
38
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk *.prg *.sym *.lst *.rel *.ihx *.asm