Skip to content

Development Env for Apps

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

How to Setup a Development Env for Building FujiNet Apps

Pull down required code

Build

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.

Clone this wiki locally