Subversion Repositories Krakow BASIC

Rev

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

Rev 2 Rev 4
Line 1... Line 1...
1
# $Id: Makefile 2 2024-09-03 11:20:04Z nishi $
1
# $Id: Makefile 4 2024-09-03 22:40:08Z 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
 
7
.PHONY: all clean
7
.PHONY: all clean
8
 
8
 
9
all: $(TARGET)
9
all: $(TARGET)
10
 
10
 
11
krakow$(EXEC): krakow.o
11
krakow$(EXEC): krakow$(OBJ)
12
	$(CC) $(LDFLAGS) -o $@ krakow.o $(LIBS)
12
	$(LD) $(LDFLAGS) -o $@ krakow$(OBJ) $(LIBS)
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.o: basic.c
17
krakow$(OBJ): basic.c
18
	$(CC) $(CFLAGS) -c -o $@ basic.c
18
	$(CC) $(CFLAGS) -o $@ basic.c
19
 
19
 
20
clean:
20
clean:
21
	rm -f *.hex *.exe krakow *.o *.elf
21
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80