Subversion Repositories Krakow BASIC

Rev

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

Rev 7 Rev 25
Line 1... Line 1...
1
# $Id: Makefile 7 2024-09-04 00:18:36Z nishi $
1
# $Id: Makefile 25 2024-09-04 16:09:27Z 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
 
Line 13... Line 13...
13
 
13
 
14
krakow.hex: krakow.elf
14
krakow.hex: krakow.elf
15
	objcopy -O ihex -R $(SECTION) krakow.elf $@
15
	objcopy -O ihex -R $(SECTION) krakow.elf $@
16
 
16
 
17
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
17
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
18
	cp $(PWD)/master.dsk $(PWD)/krakow.dsk
18
	cp $(PWD)/master.dsk krakow.dsk
19
	java -jar $(PWD)/ac.jar -as $(PWD)/krakow.dsk krakow < krakow$(EXEC)
19
	java -jar $(PWD)/ac.jar -as krakow.dsk krakow < krakow$(EXEC)
20
 
20
 
21
krakow$(OBJ): basic.c
21
krakow$(OBJ): basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
23
 
23
 
24
clean:
24
clean:
25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom
25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk