Subversion Repositories Krakow BASIC

Rev

Rev 6 | Rev 25 | 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 7 2024-09-04 00:18:36Z 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
18
	cp $(PWD)/master.dsk $(PWD)/krakow.dsk
19
	java -jar $(PWD)/ac.jar -as $(PWD)/krakow.dsk krakow < krakow$(EXEC)
20
 
4 nishi 21
krakow$(OBJ): basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
2 nishi 23
 
24
clean:
6 nishi 25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom