diff --git a/Makefile b/Makefile index 237b844..dc71fea 100644 --- a/Makefile +++ b/Makefile @@ -966,6 +966,21 @@ $(PROJECTS)/newlib-cygwin/newlib/configure: $(PROJECTS)/ixemul/configure: @cd $(PROJECTS) && git clone -b $(ixemul_BRANCH) $(ixemul_URL) +.PHONY: ixemul +ixemul: $(PREFIX)/$(TARGET)/ixemul/lib/libc.a + +$(PREFIX)/$(TARGET)/ixemul/lib/libc.a: $(BUILD)/ixemul/lib/libc.a + @mkdir -p $(PREFIX)/$(TARGET)/ixemul + $(L0)"installing ixemul-sdk"$(L1) rsync -a --no-group $(BUILD)/ixemul/* $(PREFIX)/$(TARGET)/ixemul/ $(L2) + + +$(BUILD)/ixemul/lib/libc.a: $(DOWNLOAD)/ixemul-sdk.lha + @mkdir -p $(BUILD)/ixemul + $(L0)"unpacking ixemul-sdk.lha"$(L1) cd $(BUILD)/ixemul && lha xf $(DOWNLOAD)/ixemul-sdk.lha $(L2) + +$(DOWNLOAD)/ixemul-sdk.lha: + $(L0)"downloading ixemul-sdk.lha"$(L1) cd $(DOWNLOAD) && wget https://aminet.net/util/libs/ixemul-sdk.lha $(L2) + # ================================================= # sdk installation # ================================================= diff --git a/README.md b/README.md index 227b0a5..a0752f4 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,16 @@ m68k-amigaos-gcc test.cpp -mcrt=nix13 The include files for 1.3 - which are picked up by the compiler if `-mcrt=nix13` is used - can be found at `/m68k-amigaos/ndk13-include` i.E. `/opt/amiga/m68k-amigaos/ndk13-include` +## Libraries/Runtimes + +You can select one of the various runtimes. My favorite is `libnix` which is selected by specifying `-noixmeul` or `-mcrt=nix20`. Always specify this as the last parameter and only once. These are the available runtimes: + +* nothing specifed: newlib based libraries for Kickstart 2.0+ +* `-noixemul` or `-mcrt=nix20`: the libnix libraries for Kickstart 2.0+ +* `-mcrt=nix13`: the libnix libraries for Kickstart 1.3 +* `-mcrt=clib2`: the clib2 libraries. +* `-mcrt=ixemul`: the ixemul libraries for Kickstart 2.0+, requires an installed `ixemul.library` + ## Checking gcc To check the built version you may consider to run the gcc dejagnu tests. This does not cover everything but it's a start. @@ -237,6 +247,13 @@ make branch branch=amiga13.1 mod=gcc make all -j20 ``` +### Notable branches +* `amiga6`: The default branch providing gcc-6.5.0b with a lot of hacks^^ +* `amiga13.1': gcc-13.1.0 supports register parameters +* `amiga13.2': gcc-13.2.0 supports register parameters +* `68080regs`: gcc-6.5.0b supporting the B0-B7/E0-E7 AMMX registers of the Apollo 68080 (experimental) + + ## Fortran support m68k-amigaos-gfortran is available now too. To build it add `ADDLANG=fortran`: ```