Skip to content

Commit 906841f

Browse files
authored
Add prebuilt RV32 Quake (#13)
New target "quake" was added to build system. It can download Quake shareware data. Check the repository for RISC-V porting: https://github.com/Korin777/quakembd
1 parent bc8eb24 commit 906841f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,29 @@ $(OUT)/DOOM1.WAD:
7777
sha1sum -c $@.sha1
7878
$(RM) shareware_doom_iwad.zip
7979

80+
Quake_shareware = https://www.libsdl.org/projects/quake/data/quakesw-1.0.6.zip
81+
$(OUT)/id1/pak0.pak:
82+
$(VECHO) " Downloading $@ ...\n"
83+
wget $(Quake_shareware)
84+
unzip -d $(OUT) quakesw-1.0.6.zip
85+
echo "36b42dc7b6313fd9cabc0be8b9e9864840929735 $@" > $@.sha1
86+
sha1sum -c $@.sha1
87+
$(RM) quakesw-1.0.6.zip
88+
8089
check: $(BIN)
8190
(cd $(OUT); ../$(BIN) hello.elf)
8291
(cd $(OUT); ../$(BIN) puzzle.elf)
8392

8493
demo: $(BIN) $(OUT)/DOOM1.WAD
8594
(cd $(OUT); ../$(BIN) doom.elf)
8695

96+
quake: $(BIN) $(OUT)/id1/pak0.pak
97+
(cd $(OUT); ../$(BIN) quake.elf)
98+
8799
clean:
88100
$(RM) $(BIN) $(OBJS) $(deps)
89101
distclean: clean
90102
$(RM) $(OUT)/DOOM1.WAD $(OUT)/DOOM1.WAD.sha1
103+
$(RM) -r $(OUT)/id1
91104

92105
-include $(deps)

build/quake.elf

834 KB
Binary file not shown.

0 commit comments

Comments
 (0)