Subversion Repositories Krakow BASIC

Rev

Rev 4 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 2 2024-09-03 11:20:04Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
5
TARGET ?= krakow$(EXEC)
6
 
7
.PHONY: all clean
8
 
9
all: $(TARGET)
10
 
11
krakow$(EXEC): krakow.o
12
	$(CC) $(LDFLAGS) -o $@ krakow.o $(LIBS)
13
 
14
krakow.hex: krakow.elf
15
	objcopy -O ihex -R $(SECTION) krakow.elf $@
16
 
17
krakow.o: basic.c
18
	$(CC) $(CFLAGS) -c -o $@ basic.c
19
 
20
clean:
21
	rm -f *.hex *.exe krakow *.o *.elf