Subversion Repositories Krakow BASIC

Rev

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

Rev 6 Rev 7
Line 1... Line 1...
1
# $Id: Makefile 6 2024-09-03 22:57:45Z nishi $
1
# $Id: Makefile 7 2024-09-04 00:18:36Z 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
 
Line 12... Line 12...
12
	$(LD) $(LDFLAGS) -o $@ krakow$(OBJ) $(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.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
 
17
krakow$(OBJ): basic.c
21
krakow$(OBJ): basic.c
18
	$(CC) $(CFLAGS) -o $@ basic.c
22
	$(CC) $(CFLAGS) -o $@ basic.c
19
 
23
 
20
clean:
24
clean:
21
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom
25
	rm -f *.hex *.exe krakow *.o *.elf krakow.s *.80 *.rom