mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-03 09:30:19 +00:00
update/fix sample Makefile (see #98)
This commit is contained in:
parent
cb365fbabb
commit
e4b1ee0920
@ -1,25 +1,26 @@
|
|||||||
# path to RETRO68
|
# path to RETRO68
|
||||||
RETRO68=../../../Retro68-build/toolchain
|
RETRO68=../../../Retro68-build/toolchain
|
||||||
|
|
||||||
PREFIX=$(RETRO68)/m68k-unknown-elf
|
PREFIX=$(RETRO68)/m68k-apple-macos
|
||||||
CC=$(RETRO68)/bin/m68k-unknown-elf-gcc
|
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
|
||||||
CXX=$(RETRO68)/bin/m68k-unknown-elf-g++
|
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
|
||||||
REZ=$(RETRO68)/bin/Rez
|
REZ=$(RETRO68)/bin/Rez
|
||||||
|
|
||||||
LDFLAGS=-lRetroConsole
|
LDFLAGS=-lRetroConsole
|
||||||
RINCLUDES=$(PREFIX)/RIncludes
|
RINCLUDES=$(PREFIX)/RIncludes
|
||||||
REZFLAGS=-I$(RINCLUDES)
|
REZFLAGS=-I$(RINCLUDES)
|
||||||
|
|
||||||
HelloWorld.bin HelloWorld.APPL HelloWorld.dsk: HelloWorld.flt
|
HelloWorld.bin HelloWorld.APPL HelloWorld.dsk: HelloWorld.code.bin
|
||||||
$(REZ) $(REZFLAGS) \
|
$(REZ) $(REZFLAGS) \
|
||||||
-DFLT_FILE_NAME="\"HelloWorld.flt\"" "$(RINCLUDES)/Retro68APPL.r" \
|
--copy "HelloWorld.code.bin" \
|
||||||
|
"$(RINCLUDES)/Retro68APPL.r" \
|
||||||
-t "APPL" -c "????" \
|
-t "APPL" -c "????" \
|
||||||
-o HelloWorld.bin --cc HelloWorld.APPL --cc HelloWorld.dsk
|
-o HelloWorld.bin --cc HelloWorld.APPL --cc HelloWorld.dsk
|
||||||
|
|
||||||
|
|
||||||
HelloWorld.flt: hello.o
|
HelloWorld.code.bin: hello.o
|
||||||
$(CXX) $< -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it
|
$(CXX) $< -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f HelloWorld.bin HelloWorld.APPL HelloWorld.dsk HelloWorld.flt HelloWorld.flt.gdb hello.o
|
rm -f HelloWorld.bin HelloWorld.APPL HelloWorld.dsk HelloWorld.code.bin HelloWorld.code.bin.gdb hello.o
|
||||||
|
Loading…
Reference in New Issue
Block a user