Retro68/Console/Makefile

27 lines
783 B
Makefile
Raw Normal View History

2020-01-10 21:27:40 +00:00
# path to RETRO68
RETRO68=../../Retro68-build/toolchain
PREFIX=$(RETRO68)/m68k-apple-macos
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
REZ=$(RETRO68)/bin/Rez
2020-01-12 21:09:04 +00:00
LDFLAGS=retro/libConsole.a
2020-01-10 21:27:40 +00:00
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
2020-01-12 21:09:04 +00:00
ConsoleTest.bin ConsoleTest.APPL ConsoleTest.dsk: ConsoleTest.code.bin
2020-01-10 21:27:40 +00:00
$(REZ) $(REZFLAGS) \
2020-01-12 21:09:04 +00:00
--copy "ConsoleTest.code.bin" \
2020-01-10 21:27:40 +00:00
"$(RINCLUDES)/Retro68APPL.r" \
-t "APPL" -c "????" \
2020-01-12 21:09:04 +00:00
-o ConsoleTest.bin --cc ConsoleTest.APPL --cc ConsoleTest.dsk
2020-01-10 21:27:40 +00:00
2020-01-12 21:09:04 +00:00
ConsoleTest.code.bin: ConsoleTest.o
2020-01-10 21:27:40 +00:00
$(CXX) $< -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it
.PHONY: clean
clean:
2020-01-12 21:09:04 +00:00
rm -f ConsoleTest.bin ConsoleTest.APPL ConsoleTest.dsk ConsoleTest.code.bin ConsoleTest.code.bin.gdb ConsoleTest.o