2015-07-15 23:26:11 +00:00
|
|
|
# path to RETRO68
|
2015-07-21 21:40:07 +00:00
|
|
|
RETRO68=../../../Retro68-build/toolchain
|
2015-07-15 23:26:11 +00:00
|
|
|
|
|
|
|
PREFIX=$(RETRO68)/m68k-unknown-elf
|
|
|
|
CC=$(RETRO68)/bin/m68k-unknown-elf-gcc
|
|
|
|
CXX=$(RETRO68)/bin/m68k-unknown-elf-g++
|
2015-07-21 21:40:07 +00:00
|
|
|
REZ=$(RETRO68)/bin/Rez
|
2015-07-15 23:26:11 +00:00
|
|
|
|
|
|
|
LDFLAGS=-lRetroConsole
|
2015-07-21 21:40:07 +00:00
|
|
|
RINCLUDES=$(PREFIX)/RIncludes
|
|
|
|
REZFLAGS=-I$(RINCLUDES)
|
2015-07-15 23:26:11 +00:00
|
|
|
|
|
|
|
HelloWorld.bin HelloWorld.APPL HelloWorld.dsk: HelloWorld.flt
|
2015-07-21 21:40:07 +00:00
|
|
|
$(REZ) $(REZFLAGS) \
|
|
|
|
-DFLT_FILE_NAME="\"HelloWorld.flt\"" "$(RINCLUDES)/Retro68APPL.r" \
|
|
|
|
-t "APPL" -c "????" \
|
|
|
|
-o HelloWorld.bin --cc HelloWorld.APPL --cc HelloWorld.dsk
|
|
|
|
|
2015-07-15 23:26:11 +00:00
|
|
|
|
|
|
|
HelloWorld.flt: hello.o
|
|
|
|
$(CXX) $< -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it
|
2015-07-16 00:29:30 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f HelloWorld.bin HelloWorld.APPL HelloWorld.dsk HelloWorld.flt HelloWorld.flt.gdb hello.o
|