zcc +rex -create-app -lm -o adv.bin program.c
This will generate two files - adv.bin which is an intermediate binary file and adv.rex which is a REX addin that can be transferred to the Rex and run.
The command optionally uses a file called adv.res which contains resources for the addin - icon, application name and a comment, an example is below:
APPNAME Hello World COMMENT Made with z88dk ICON XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.... X...................................X... X....................................X.. X.....................................X. X......................................X X......X..X.XXXX.X....X.....XX.........X X......X..X.X....X....X....X..X........X X......X..X.X....X....X....X..X........X X......XXXX.XXX..X....X....X..X........X X......X..X.X....X....X....X..X........X X......X..X.X....X....X....X..X........X X......X..X.XXXX.XXXX.XXXX..XX.........X X......................................X X......................................X X......................................X X......................................X X......X..X..XX..XXX..X...XXX..........X X......X..X.X..X.X..X.X...X..X.........X X......X..X.X..X.X..X.X...X..X.........X X......X..X.X..X.XXX..X...X..X.........X X......XXXX.X..X.X..X.X...X..X.........X X......XXXX.X..X.X..X.X...X..X.........X X.......XX...XX..X..X.XXX.XXX..........X X......................................X X......................................X X......................................X X......................................X X......................................X X......................................X X......................................X X......................................X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Support program to produce Rex Addins, this has been integrated into the appmake program so an addin can be generated in a single command.