diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..940951401a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:18.04 as build + +RUN apt-get update && \ + apt-get install -y \ + binutils-mips-linux-gnu \ + build-essential \ + pkg-config \ + python3 \ + wget \ + git \ + unzip + +RUN wget \ + https://github.com/n64decomp/qemu-irix/releases/download/v2.11-deb/qemu-irix-2.11.0-2169-g32ab296eef_amd64.deb \ + -O qemu.deb && \ + echo 8170f37cf03a08cc2d7c1c58f10d650ea0d158f711f6916da9364f6d8c85f741 qemu.deb | sha256sum --check && \ + dpkg -i qemu.deb && \ + rm qemu.deb + +RUN mkdir /oot +WORKDIR /oot diff --git a/makefile b/makefile index 2052ddb974..8e5cac600f 100644 --- a/makefile +++ b/makefile @@ -146,7 +146,7 @@ build/asm/%.o: asm/%.s $(AS) $(ASFLAGS) $^ -o $@ build/data/%.o: data/%.s - iconv --to EUC-JP $^ | $(AS) $(ASFLAGS) -o $@ + iconv --from UTF-8 --to EUC-JP $^ | $(AS) $(ASFLAGS) -o $@ #build/assets/%.o: assets/%.s # $(AS) $(ASFLAGS) $^ -o $@ @@ -172,7 +172,7 @@ build/src/overlays/%.o: src/overlays/%.c @$(OBJDUMP) -d $@ > $(@:.o=.s) build/asm/overlays/%.o: asm/overlays/%.s - iconv --to EUC-JP $^ | $(AS) $(ASFLAGS) -o $@ + iconv --from UTF-8 --to EUC-JP $^ | $(AS) $(ASFLAGS) -o $@ build/src/%.o: src/%.c $(CC) -c $(CFLAGS) $(OPTIMIZATION) -o $@ $^