-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
2,949 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
################################################################################ | ||
## | ||
## RAGE1 - Retro Adventure Game Engine, release 1 | ||
## (c) Copyright 2020 Jorge Gonzalez Villalonga <jorgegv@daikon.es> | ||
## | ||
## This code is ublished under a GNU GPL license version 3 or later. See | ||
## LICENSE file in the distribution for details. | ||
## | ||
################################################################################ | ||
|
||
MYMAKE = $(MAKE) -f Makefile-128 | ||
ZPRAGMA_INC = zpragma-128.inc | ||
|
||
# All taps | ||
TAPS = $(BAS_LOADER_TAP) $(BSWITCH_TAP) $(BANK_TAPS) $(MAIN_TAP) | ||
|
||
-include Makefile.common | ||
|
||
build: | ||
@$(MYMAKE) -s -j8 datasets | ||
@$(MYMAKE) -s -j8 banks | ||
@$(MYMAKE) -s bank_switcher | ||
@$(MYMAKE) -s -j8 main | ||
@$(MYMAKE) -s -j8 taps | ||
@$(MYMAKE) -s final | ||
|
||
## Banks | ||
|
||
banks: | ||
@echo "Building Bank binaries, BASIC loader and Dataset map..." | ||
@./tools/r1banktool.pl -i $(GENERATED_DIR_DATASETS) -o $(GENERATED_DIR) -l $(GENERATED_DIR_LOWMEM) -b .zx0 | ||
|
||
bank_switcher: $(BSWITCH_BIN) | ||
|
||
$(BSWITCH_BIN): | ||
@echo "Assembling bank switch routine..." | ||
@$(ZCC) $(CFLAGS) --list --no-crt $(BSWITCH_SRC) -o $(BSWITCH_BIN) | ||
|
||
## Taps | ||
|
||
taps: $(TAPS) | ||
|
||
# we set org at 0xC000 for the banks | ||
bank_%.tap: bank_%.bin | ||
@echo "Creating TAP $@..." | ||
@z88dk-appmake +zx --noloader --org 0xC000 -b $< | ||
|
||
# we set org at 0x8184 for 128 mode, 0x5F00 for 48 mode | ||
$(MAIN_TAP): $(MAIN_BIN) | ||
@echo "Creating TAP $@..." | ||
@z88dk-appmake +zx --noloader --org 0x8184 -b $< | ||
|
||
# we set org at 0x8000 for bank switcher | ||
$(BSWITCH_TAP): $(BSWITCH_BIN) | ||
@echo "Creating TAP $@..." | ||
@z88dk-appmake +zx --noloader --org 0x8000 -b $< | ||
|
||
## Run options | ||
|
||
FUSE_RUN_OPTS = --machine 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
################################################################################ | ||
## | ||
## RAGE1 - Retro Adventure Game Engine, release 1 | ||
## (c) Copyright 2020 Jorge Gonzalez Villalonga <jorgegv@daikon.es> | ||
## | ||
## This code is ublished under a GNU GPL license version 3 or later. See | ||
## LICENSE file in the distribution for details. | ||
## | ||
################################################################################ | ||
|
||
MYMAKE = $(MAKE) -f Makefile-48 | ||
ZPRAGMA_INC = zpragma-48.inc | ||
|
||
# All taps | ||
TAPS = $(BAS_LOADER_TAP) $(MAIN_TAP) | ||
|
||
-include Makefile.common | ||
|
||
build: | ||
@cp $(ENGINE_DIR)/loader48/loader.bas $(BAS_LOADER) | ||
@$(MYMAKE) -s -j8 main | ||
@$(MYMAKE) -s -j8 taps | ||
@$(MYMAKE) -s final | ||
|
||
## Taps | ||
|
||
taps: $(TAPS) | ||
|
||
# we set org at 0x5F00 for 48 mode | ||
$(MAIN_TAP): $(MAIN_BIN) | ||
@echo "Creating TAP $@..." | ||
@z88dk-appmake +zx --noloader --org 0x5F00 -b $< | ||
|
||
## Run options | ||
|
||
FUSE_RUN_OPTS = --machine 48 |
Oops, something went wrong.