diff --git a/examples/saga-pip-overlay-and-chroma-key.md b/examples/saga-pip-overlay-and-chroma-key.md index 2c7fb61..37d74c1 100644 --- a/examples/saga-pip-overlay-and-chroma-key.md +++ b/examples/saga-pip-overlay-and-chroma-key.md @@ -47,8 +47,7 @@ m68k-amigaos-gcc -noixemul -O2 -m68080 -m68881 -ffast-math -fomit-frame-pointer ``` The full example builds in ApolloCrossDev with `make` in -`Projects/ApolloPiP` (which also uploads it to the Apollo V4), or -`make cleanbefore build` to only build. +`Projects/ApolloPiP`. Copy the program to the Apollo V4 to run it. ## Code diff --git a/examples/saga-pointer-sprite.md b/examples/saga-pointer-sprite.md index b416bd3..9f4f34a 100644 --- a/examples/saga-pointer-sprite.md +++ b/examples/saga-pointer-sprite.md @@ -38,8 +38,7 @@ m68k-amigaos-gcc -noixemul -O2 -m68080 -m68881 -ffast-math -fomit-frame-pointer ``` The full example builds in ApolloCrossDev with `make` in -`Projects/ApolloPointer` (which also uploads it to the Apollo V4), or -`make cleanbefore build` to only build. Its folder has seven 32x32 8-bit +`Projects/ApolloPointer`. Copy the program to the Apollo V4 to run it. Its folder has seven 32x32 8-bit pointer images (`ApolloPointer_*_32x32x8.bmp`). ## Code diff --git a/skills/apollo-build/SKILL.md b/skills/apollo-build/SKILL.md index 62c7dc2..5e6403c 100644 --- a/skills/apollo-build/SKILL.md +++ b/skills/apollo-build/SKILL.md @@ -44,14 +44,15 @@ last changed, for example after a `git pull` without a reinstall. The project's Makefile comes from ApolloCrossDev's template (`Projects/_makefiles/Makefile`, see `KB toolchain/project-makefile.md`). -| Goal | Command | +| Makefile | Build command | |---|---| -| Compile and link only | `make compile` (template v1.2 and later); with an older Makefile `make cleanbefore build` | -| Also upload to the V4 (`$AMIGAHOST`) | `make` | -| Upload with the remote debugger | `make debug` | +| Current template (no `upload_all:` target) | `make` | +| Older Makefile with an `upload_all:` target | `make cleanbefore build` | -- Run `make compile` yourself. Run `make` or `make debug` only when the user - asks: they copy files to the user's Apollo V4 over the network. +- Since ApolloCrossDev v1.2 (2026-11-08) the template only builds on the + host. In an older Makefile, plain `make` and `make debug` also copy files + to the user's Apollo V4 over the network: run them only when the user + asks. `find-acd.sh` reports such a Makefile with a `NOTE=` line. - The Makefile hides compiler stdout; errors and warnings arrive on stderr. Read all of it. - Without a Makefile (a quick test), use the flags from diff --git a/skills/apollo-build/scripts/find-acd.sh b/skills/apollo-build/scripts/find-acd.sh index fec385b..e35126e 100755 --- a/skills/apollo-build/scripts/find-acd.sh +++ b/skills/apollo-build/scripts/find-acd.sh @@ -58,14 +58,14 @@ fi template="$root/Projects/_makefiles/Makefile" if [ -f "$template" ]; then echo "TEMPLATE=$(sed -n 's/^# ApolloCrossDev Makefile Template //p' "$template" | head -n 1)" - grep -q '^compile:' "$template" || echo "NOTE=the Makefile template has no 'make compile' target: update ApolloCrossDev (git pull)" + grep -q '^upload_all:' "$template" && echo "NOTE=the Makefile template still uploads to the V4 (older than ApolloCrossDev v1.2 of 2026-11-08): update ApolloCrossDev (git pull)" else problem "$template is missing" fi if [ -f "$project/Makefile" ]; then echo "MAKEFILE=$(sed -n 's/^# ApolloCrossDev Makefile Template //p' "$project/Makefile" | head -n 1)" - grep -q '^compile:' "$project/Makefile" || echo "NOTE=the project Makefile has no 'make compile' target; build with: make cleanbefore build" + grep -q '^upload_all:' "$project/Makefile" && echo "NOTE=the project Makefile is older than ApolloCrossDev v1.2 of 2026-11-08: plain 'make' also uploads to the V4; build with: make cleanbefore build" fi case $(uname) in Darwin) script=GCC-6.50-Dev-MacOS.sh ;; *) script=GCC-6.50-Dev-Linux.sh ;; esac diff --git a/skills/apollo-new-project/SKILL.md b/skills/apollo-new-project/SKILL.md index 9e08e52..dd3fbf5 100644 --- a/skills/apollo-new-project/SKILL.md +++ b/skills/apollo-new-project/SKILL.md @@ -84,8 +84,8 @@ These files make every agent that opens the project read AKB first. - **`AGENTS.md`** (read by most agents): from `KB templates/repo/AGENTS.md`. Fill in every `` from step 1 and its defaults, remove the template's HTML comments. - - **Build and test:** `make compile` to build, `make` to build and upload - to the V4 at `$AMIGAHOST`. + - **Build and test:** `make` to build on the host; copy the executable + to the V4 to run it. - **Relevant knowledge base areas:** pick from the table in `KB AGENTS.md` section 3. Always `toolchain/`; `os/os-takeover.md` and `core/` for os-takeover; the SAGA folders that the program will use; @@ -130,7 +130,7 @@ Tell the user what you found and let them choose: | `PROBLEM=` a binary is missing | The install failed: point the user to `Compilers/GCC-6.50-Dev/_logs/*_err.log` and the reinstall command. Wait until it is fixed. | | `UPDATE=checkout` | `git pull` in the ApolloCrossDev folder: quick, brings new Makefile templates, ApolloLib and scripts. If `LOCAL_CHANGES=` is reported, the user decides about those first. Run the pull only with their consent. | | `UPDATE=compiler` | Reinstall GCC-6.50-Dev (the command is in the line; `sudo`, about 30 minutes; the user runs it). Say what the newer build changes: the bug table in `KB toolchain/compiler-variants.md`. The user may also continue now and reinstall later. | -| `TEMPLATE=` older than v1.2 | `git pull` is required: the project needs `make compile` and builds outside ApolloCrossDev. | +| `TEMPLATE=` older than v1.2, or a `NOTE=` that the template still uploads | `git pull` is required: the project needs the current template, which builds outside ApolloCrossDev and does not upload. | | `UPDATES=none` | Say the toolchain is up to date. | Run the check again after an install or update, until it reports no @@ -139,10 +139,8 @@ Run the check again after an install or update, until it reports no **`APOLLOCROSSDEV`:** the project lives outside `ApolloCrossDev/Projects/`, so the Makefile needs it. If the check notes it is unset, offer to add `export APOLLOCROSSDEV=""` to `~/.zshrc` (macOS) or `~/.bashrc` -(Linux), next to `AMIGAHOST` (the V4's IP address, needed for upload; ask -for it if that is missing too). Change the file only with the user's -consent. For this session, pass it on the command line: -`APOLLOCROSSDEV= make compile`. +(Linux). Change the file only with the user's consent. For this session, +pass it on the command line: `APOLLOCROSSDEV= make`. ## 5. Makefile (guided setup) @@ -175,8 +173,7 @@ Copy `assets/gitignore` to `.gitignore`. ## 7. Build it (guided setup) Build as the apollo-build skill describes (`KB skills/apollo-build/SKILL.md`): -`make compile`. It must end with no errors and no warnings before you -continue. +`make`. It must end with no errors and no warnings before you continue. ## 8. Hand over diff --git a/toolchain/c-compiler-options.md b/toolchain/c-compiler-options.md index 7df8020..c4935dc 100644 --- a/toolchain/c-compiler-options.md +++ b/toolchain/c-compiler-options.md @@ -94,7 +94,8 @@ the `libm020` or `libm020/libm881` builds (SRC: `m68k-amigaos-gcc ### Other options in the Makefile template -- `-g`: debug information, for remote debugging with bgdbserver. +- `-g`: debug information. ApolloCrossDev no longer installs bgdbserver + (since v1.2, 2026-11-08), so there is no remote debugger in the toolchain. - `-DREGPARM=4`: ignore it. It is not part of the standard options. ### Compile and link diff --git a/toolchain/index.md b/toolchain/index.md index d2d7bcd..5f88958 100644 --- a/toolchain/index.md +++ b/toolchain/index.md @@ -55,14 +55,15 @@ C and C++: `-O2 -m68080 -m68881 -ffast-math -fomit-frame-pointer`. Details in ### What else is installed -- Amiga NDKs 1.3, 3.9 and 3.2 (3.2 is the default), see +- Amiga NDK 3.2 in `/m68k-amigaos/ndk-include` (the default) and + NDK 1.3 in `.../ndk13-include`; no NDK 3.9, see `toolchain/target-os-headers.md` -- C runtimes libnix (default) and clib2 -- Libraries and headers: MUI 5, SDL (base, mixer, ttf, image), Vorbis, Ogg, - GL, FreeType, Timidity, zlib, minizip, Lua, MPEGA, P96 headers -- DevPac includes for assembly, in `/m68k-amigaos/DevPac` -- ApolloExplorer (`acp`) to upload files to an Apollo V4 over the network -- bgdbserver, a GDB server that runs on the Apollo V4 for remote debugging +- C runtime libnix (`-noixemul`); clib2 is not installed +- Libraries and headers: MUI 5 (`include/mui`), SDL (base, mixer, ttf, + image, net), Vorbis, Ogg, GL, FreeType, Timidity, zlib, minizip, Lua, + MPEGA, P96 headers +- DevPac includes and libraries for assembly, in + `/m68k-amigaos/DevPac` (`Include`, `Lib`) - ApolloLib in `Projects/ApolloLib`: sound, picture, PIP, pointer, input, copy and blit routines and serial debug output for SAGA and the 68080, see [toolchain/apollolib/](apollolib/index.md) @@ -88,11 +89,11 @@ to `Compilers/GCC-6.50-Dev/_logs/*_err.log` and does not stop on errors, so check that the binaries above exist afterwards. A full build takes about 25 minutes on a 4-core GitHub Actions runner. -For uploading to the Apollo V4, set its IP address in `~/.bashrc`: - -```sh -export AMIGAHOST="192.168.2.100" -``` +Since ApolloCrossDev v1.2 (2026-11-08) the install no longer includes +ApolloExplorer (`acp`) or bgdbserver, and the Makefiles no longer upload. +Copy the program to the Apollo V4 yourself. For copying and running over the +network with ApolloExplorer, installed separately, see +[testing-on-v4-hardware.md](../guides/testing-on-v4-hardware.md). ### Reference manuals diff --git a/toolchain/project-makefile.md b/toolchain/project-makefile.md index fc2ffe3..5f3cf0a 100644 --- a/toolchain/project-makefile.md +++ b/toolchain/project-makefile.md @@ -8,22 +8,24 @@ components: [toolchain] applies_to: core: "any" os: [any] -tags: [makefile, build, upload, debug, apolloexplorer, bgdbserver] +tags: [makefile, build] related: - toolchain/c-compiler-options.md - toolchain/vasm-assembler.md sources: - "github.com/WDrijver/ApolloCrossDev Projects/_makefiles/Makefile (template v1.0, 2025-11-28; v1.2, pull request #22, commit d636629, 2026-11-05)" + - "github.com/WDrijver/ApolloCrossDev commit d571781 (ApolloCrossDev v1.2, 2026-11-08): upload, debug and compile targets removed, ApolloExplorer and bgdbserver no longer installed (WDrijver: intentional)" + - "github.com/WDrijver/ApolloCrossDev pull request #38 (2026-11-25): include paths, DevPac/Lib, include/mui" + - "ApolloKnowledgeBase pull request #92 by AmanitaHouse (closed; found the removed targets)" - "github.com/WDrijver/ApolloCrossDev README.md" --- ## Summary -New ApolloCrossDev projects copy `Projects/_makefiles/Makefile`. It compiles -all `.c` and `.s` files in the project folder and ApolloLib's sources, -links them into one executable, and uploads it to the Apollo V4 with -ApolloExplorer. From template v1.2 (2026-11-05) a project can live anywhere, -and `make compile` builds without uploading. +New ApolloCrossDev projects copy `Projects/_makefiles/Makefile`. `make` +compiles all `.c` and `.s` files in the project folder and ApolloLib's +sources and links them into one executable on the host. It does not copy +anything to the Apollo V4. A project can live anywhere. ## Details @@ -35,14 +37,15 @@ and `make compile` builds without uploading. 3. Set `PROJECT_NAME` in the Makefile. 4. Add sources: `.c` for C, `.s` for assembly. For C++, see the Do / Don't section. -5. Run `make compile` (build only) or `make` (build and upload) in the - project folder. +5. Run `make` in the project folder. +6. Copy the executable to the Apollo V4 yourself, for example over the + network as in [testing-on-v4-hardware.md](../guides/testing-on-v4-hardware.md). The template finds ApolloCrossDev through `ACD_ROOT`: the environment variable `APOLLOCROSSDEV` when it is set, otherwise `../..`. A project outside `Projects/` therefore needs `APOLLOCROSSDEV` set to the ApolloCrossDev folder, for example `export APOLLOCROSSDEV="$HOME/ApolloCrossDev"` -in `~/.bashrc` or `~/.zshrc`, next to `AMIGAHOST`. The compiler is then +in `~/.bashrc` or `~/.zshrc`. The compiler is then `$(ACD_ROOT)/Compilers/GCC-6.50-Dev` (`PREFIX`). Template v1.0 had no `ACD_ROOT` and only worked two levels below the ApolloCrossDev root. @@ -52,13 +55,14 @@ in `~/.bashrc` or `~/.zshrc`, next to `AMIGAHOST`. The compiler is then |---|---|---| | `ACD_ROOT` | `$APOLLOCROSSDEV`, else `../..` | The ApolloCrossDev folder (v1.2) | | `C_COMPILER` | `m68k-amigaos-gcc` | Switch to `m68k-amigaos-g++` for C++ | -| `C_LIB` | `-noixemul` | C runtime (libnix); alternative `-mcrt=clib2` | -| `C_INCL_NDK` | NDK 3.2 | NDK headers, see `toolchain/target-os-headers.md` | +| `C_LIB` | `-noixemul` | C runtime (libnix). The `-mcrt=clib2` line is there, but clib2 is not installed | +| `C_INCL_NDK` | `ndk-include` (NDK 3.2) | NDK headers, see `toolchain/target-os-headers.md` | | `C_OPTIONS` | `-O2 -m68080 -m68881 -ffast-math -fomit-frame-pointer -DREGPARM=4` | Compiler options. Ignore `-DREGPARM=4`. | | `C_DEBUG` | `-g` | Debug information | -| `S_FLAGS` | `-Fhunk -m68080 -m68881 -opt-speed -linedebug -kick1hunks -I` | Assembler options | +| `S_FLAGS` | `-Fhunk -m68080 -m68881 -opt-speed -linedebug -kick1hunks -I` | Assembler options (`DevPac/Include`) | | `APOLLOLIB` | `$(ACD_ROOT)/Projects/ApolloLib` | ApolloLib, compiled into the program; put `#` before it to build without | | `C_LIBS_SDL`, `C_LIBS_MUI`, `C_LIBS_MATH` | off | Extra libraries, enable by removing `#` | +| `C_INCL_GL`, `C_INCL_SDL`, `C_INCL_MUI` | off | Extra include folders (`include/GL`, `include/SDL`, `include/mui`) | The template only collects `.c` and `.s` files (`C_FILES`, `S_FILES`). From v1.2 it compiles ApolloLib's `.c` and `.s` files with the project's flags @@ -70,32 +74,42 @@ into the project's `.apollolib/` folder, and adds `-I$(APOLLOLIB)` (see | Command | What it does | |---|---| -| `make compile` | Compile and link only, no upload (v1.2) | -| `make` | Compile, link, upload executable and icon to `RAM Disk:` on the Apollo V4, clean up | -| `make debug` | As `make`, and also uploads bgdbserver and a `_Debug` script that starts the program under bgdbserver | +| `make` | Clean, compile, link, remove the object files | +| `make cleanbefore build` | Compile and link, keep the object files | -Upload uses ApolloExplorer's `acp` to `"${AMIGAHOST}:Ram Disk/"`. Set -`AMIGAHOST` to the Apollo V4's IP address. +`make cleanbefore build` works with every template version, also with older +project Makefiles. -### Remote debugging +### Older project Makefiles -1. Run `make debug`. -2. Set breakpoints in VS Code on the host. -3. Start debugging in VS Code (F5) and select the project. -4. On the Apollo V4, double-click the program's `_Debug` icon in `RAM Disk:`. +The ApolloCrossDev v1.2 release (2026-11-08) removed the targets that +copied files to the V4, on purpose. Both before and after it, the Makefile +says `Template v1.2` in its first line, so check its targets: + +| Makefile | `make` | Also has | +|---|---|---| +| Since 2026-11-08 | Builds only | No other targets | +| v1.2 of 2026-11-05 | Builds and uploads with ApolloExplorer's `acp` to `$AMIGAHOST` | `make compile` (build only), `make debug` (uploads bgdbserver too) | +| v1.0 | Builds and uploads | `make debug`; no `compile` | + +In a Makefile that still has an `upload_all:` target, `make` copies files to +the V4 over the network. Build with `make cleanbefore build` instead, or +copy the current template. ApolloCrossDev no longer installs ApolloExplorer +or bgdbserver, so these older targets fail on a new install. ## Differences from AmigaOS / AROS / 68060 -- The build runs on the host (Linux or macOS), not on the Amiga. The Apollo - V4 only receives the executable. +- The build runs on the host (Linux or macOS), not on the Amiga. You copy + the executable to the Apollo V4. - Template v1.0 started with `clear`, which stops the build when there is no terminal (`TERM environment variable not set`), as in IDE tasks and AI agents. v1.2 ignores that error. ## Do / Don't -- DO start new projects from the Makefile template (v1.2 or later). -- DO build with `make compile` when you don't want to upload to the V4. +- DO start new projects from the current Makefile template. +- DON'T run `make` in an older project Makefile with an `upload_all:` target + unless you want to copy to the V4: use `make cleanbefore build`. - DO add `.cpp` files to the template's file lists yourself when using C++. The template does not collect them. - DON'T remove `-m68080` from `C_OPTIONS` or `S_FLAGS`.