Subversion Repositories Krakow BASIC

Rev

Rev 35 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 39
Line 1... Line 1...
1
# $Id: Makefile 35 2024-09-05 05:30:52Z nishi $
1
# $Id: Makefile 39 2024-09-06 12:56:29Z 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) $(EXTOBJ)
12
	$(LD) $(LDFLAGS) $@ krakow$(OBJ) $(LIBS) || ( rm -f krakow$(EXEC) ; exit 1 )
12
	$(LD) $(LDFLAGS) $@ krakow$(OBJ) $(EXTOBJ) $(LIBS) || ( rm -f krakow$(EXEC) ; exit 1 )
13
 
13
 
14
krakow.msx.rom: krakow.msx.bin krakow.msx.ihx
14
krakow.msx.rom: krakow.msx.bin krakow.msx.ihx
15
	hex2bin -e rom krakow.msx.ihx
15
	hex2bin -e rom krakow.msx.ihx
16
	dd if=krakow.msx.bin of=krakow.msx.rom obs=1 seek=256 conv=notrunc
16
	dd if=krakow.msx.bin of=krakow.msx.rom obs=1 seek=256 conv=notrunc
17
 
17
 
Line 32... Line 32...
32
	java -jar $(PWD)/ac.jar -as krakow.dsk krakow < krakow$(EXEC)
32
	java -jar $(PWD)/ac.jar -as krakow.dsk krakow < krakow$(EXEC)
33
 
33
 
34
krakow$(OBJ): basic.c
34
krakow$(OBJ): basic.c
35
	$(CC) $(CFLAGS) -o $@ basic.c
35
	$(CC) $(CFLAGS) -o $@ basic.c
36
 
36
 
-
 
37
x11$(OBJ): x11.c
-
 
38
	$(CC) $(CFLAGS) -o $@ x11.c
-
 
39
 
37
clean:
40
clean:
38
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk *.prg *.sym *.lst *.rel *.ihx *.asm *.bin
41
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk *.prg *.sym *.lst *.rel *.ihx *.asm *.bin