Rev 7 | Rev 29 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# $Id: Makefile 25 2024-09-04 16:09:27Z nishi $
include $(PWD)/Platform/$(PLATFORM).mk
TARGET ?= krakow$(EXEC)
.PHONY: all clean
all: $(TARGET)
krakow$(EXEC): krakow$(OBJ)
$(LD) $(LDFLAGS) -o $@ krakow$(OBJ) $(LIBS)
krakow.hex: krakow.elf
objcopy -O ihex -R $(SECTION) krakow.elf $@
krakow.dsk: krakow$(EXEC) $(PWD)/master.dsk $(PWD)/ac.jar
cp $(PWD)/master.dsk krakow.dsk
java -jar $(PWD)/ac.jar -as krakow.dsk krakow < krakow$(EXEC)
krakow$(OBJ): basic.c
$(CC) $(CFLAGS) -o $@ basic.c
clean:
rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom *.dsk