Retro68/Samples/HelloWorld/Makefile

27 lines
755 B
Makefile
Raw Normal View History

# path to RETRO68
RETRO68=../../../Retro68-build/toolchain
2019-12-07 14:24:48 +00:00
PREFIX=$(RETRO68)/m68k-apple-macos
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
REZ=$(RETRO68)/bin/Rez
LDFLAGS=-lRetroConsole
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
2019-12-07 14:24:48 +00:00
HelloWorld.bin HelloWorld.APPL HelloWorld.dsk: HelloWorld.code.bin
$(REZ) $(REZFLAGS) \
2019-12-07 14:24:48 +00:00
--copy "HelloWorld.code.bin" \
"$(RINCLUDES)/Retro68APPL.r" \
-t "APPL" -c "????" \
-o HelloWorld.bin --cc HelloWorld.APPL --cc HelloWorld.dsk
2019-12-07 14:24:48 +00:00
HelloWorld.code.bin: hello.o
$(CXX) $< -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it
.PHONY: clean
clean:
2019-12-07 14:24:48 +00:00
rm -f HelloWorld.bin HelloWorld.APPL HelloWorld.dsk HelloWorld.code.bin HelloWorld.code.bin.gdb hello.o