Skip to content

Development Env for Apps

andy diller edited this page Nov 16, 2022 · 14 revisions

How to Setup a Development Env for Building FujiNet Apps

Pull down required code

Build

Building works perfectly using a Linux based host. Mac OSX should work but issues have been seen building cc65.

Build cc65:

$ PREFIX=/usr/local/cc65 make
$ sudo PREFIX=/usr/local/cc65 make install

Build an app for a platform:

$ cd /fujinet-apps/netcat/apple2

$ make
mkdir -p obj/apple2enh
cl65 -t apple2enh -c --create-dep obj/apple2enh/main.d -Os -DBUILD_APPLE2 -o obj/apple2enh/main.o src/main.c
cl65 -t apple2enh -c --create-dep obj/apple2enh/sp.d -Os -DBUILD_APPLE2 -o obj/apple2enh/sp.o src/sp.c
cl65 -t apple2enh  -o netcat obj/apple2enh/main.o obj/apple2enh/sp.o

The binary is created as netcat. Now we need to wrap that into a bootable .po image.


$ make dist
cp dist.apple2/bootable.po dist.apple2/dist.po
java -jar dist.apple2/ac.jar -as dist.apple2/dist.po netcat.system sys <netcat

Now the .po disk image is created, move it to a location where you can mount it on your FujiNet. I have a folder setup to hold the files till I push them over into my TNFS server...

$ cp dist.apple2/dist.po ~/scratch/fujinet-app-staging/netcat-ssh.po

Clone this wiki locally