mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-12-22 05:29:54 +00:00
b621ac6a4d
This is a modified version of the ROMX Real-Time Clock driver. The changes include: * Converting the source to ca65. * Integrating with the driver installer framework. * Adapting the driver to not modify page 2 beyond $220. The ROMX RTC firmware writes bytes to $2B0, and the the original driver placed temp code at $250. This can conflict with ProDOS applications that use page 2, so the driver was reworked to save/restore anything at at $2B0. Other changes: * Add a util/ source dir, and cricket/date, quit.system and pause.system there. * Pull the "print current date" logic out of clock drivers into driver preamble.
23 lines
548 B
Makefile
23 lines
548 B
Makefile
targets := ns.clock cricket dclock romx selectors ram.drv util
|
|
|
|
.PHONY: all $(targets) package
|
|
|
|
all: $(targets)
|
|
|
|
# Build all targets
|
|
$(targets):
|
|
@tput setaf 3 && echo "Building: $@" && tput sgr0
|
|
@$(MAKE) -C $@ \
|
|
&& (tput setaf 2 && echo "make $@ good" && tput sgr0) \
|
|
|| (tput blink && tput setaf 1 && echo "MAKE $@ BAD" && tput sgr0 && false)
|
|
|
|
# Clean all temporary/target files
|
|
clean:
|
|
@for dir in $(targets); do \
|
|
tput setaf 2 && echo "cleaning $$dir" && tput sgr0; \
|
|
$(MAKE) -C $$dir clean; \
|
|
done
|
|
|
|
package:
|
|
./package.sh
|