You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-2Lines changed: 60 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,9 @@ json-c
12
12
5.[Testing](#testing)
13
13
6.[Building with `vcpkg`](#buildvcpkg)
14
14
7.[Building for Android](#android)
15
-
7.[Linking to libjson-c](#linking)
16
-
8.[Using json-c](#using)
15
+
8.[Building for Commodore Amiga or MorphOS](#amiga)
16
+
9.[Linking to libjson-c](#linking)
17
+
10.[Using json-c](#using)
17
18
18
19
<aname="overview"></a>
19
20
JSON-C - A JSON implementation in C
@@ -270,6 +271,63 @@ cmake \
270
271
make install
271
272
```
272
273
274
+
<aname="amiga"></a>
275
+
Building for Commodore Amiga or MorphOS
276
+
----------------------
277
+
278
+
Building for Commodore Amiga is supported for both Motorola 68k (AmigaOS 3) and PowerPC (AmigaOS 4) architectures. MorphOS on compatible PowerPC hardware is also supported. You can set up a cross compiler locally, however it is much easier to use the already preconfigured Amiga development environment wtthin a Docker container.
279
+
280
+
Install Docker on your machine if you don't already have it. You can download Docker Desktop for Windows/macOS/Linux [here](https://www.docker.com/products/docker-desktop/).
281
+
282
+
### To build for Motorola 68k Amiga:
283
+
284
+
```
285
+
mkdir build
286
+
docker run --rm \
287
+
-v ${PWD}:/work \
288
+
-e USER=$( id -u ) -e GROUP=$( id -g ) \
289
+
-it sacredbanana/amiga-compiler:m68k-amigaos bash
290
+
cd build
291
+
cmake -DM68K_CRT=newlib ..
292
+
make
293
+
```
294
+
295
+
libjson-c.a will get created in the build directory.
296
+
297
+
You can change newlib to nix20, nix13, ixemul or clib2 if you would like to build the library suited for libnix or clib2 instead. Newlib is default.
298
+
299
+
### To build for PowerPC Amiga:
300
+
301
+
```
302
+
mkdir build
303
+
docker run --rm \
304
+
-v ${PWD}:/work \
305
+
-e USER=$( id -u ) -e GROUP=$( id -g ) \
306
+
-it sacredbanana/amiga-compiler:ppc-amigaos bash
307
+
cd build
308
+
cmake ..
309
+
make
310
+
```
311
+
312
+
libjson-c.a will get created in the build directory.
313
+
314
+
### To build for PowerPC MorphOS:
315
+
316
+
```
317
+
mkdir build
318
+
docker run --rm \
319
+
-v ${PWD}:/work \
320
+
-e USER=$( id -u ) -e GROUP=$( id -g ) \
321
+
-it sacredbanana/amiga-compiler:ppc-morphos bash
322
+
cd build
323
+
cmake -DNOIXEMUL=1 ..
324
+
make
325
+
```
326
+
327
+
If you are making an application that absolutely requires ixemul, then remove the `-DNOIXEMUL=1`.
328
+
329
+
libjson-c.a will get created in the build directory.
0 commit comments