Subversion Repositories Krakow BASIC

Rev

Rev 7 | Rev 29 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 25 2024-09-04 16:09:27Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
5
TARGET ?= krakow$(EXEC)
6
 
7
.PHONY: all clean
8
 
9
all: $(TARGET)
10
 
4 nishi 11
krakow$(EXEC): krakow$(OBJ)
12
	$(LD) $(LDFLAGS) -o $@ krakow$(OBJ) $(LIBS)
2 nishi 13
 
14
krakow.hex: krakow.elf
15
	objcopy -O ihex -R $(SECTION) krakow.elf $@
16
 
7 nishi 17
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
25 nishi 18
	cp $(PWD)/master.dsk krakow.dsk
19
	java -jar $(PWD)/ac.jar -as krakow.dsk krakow < krakow$(EXEC)
7 nishi 20
 
4 nishi 21
krakow$(OBJ): basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
2 nishi 23
 
24
clean:
25 nishi 25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk