zcc +rex -create-app -lm hello.c
If we want to generate a library file, then:
zcc +rex -subtype=lib -create-app -lm libcode.c
Note that in this latter case the main program entry must be “LibMain()”.
The command optionally uses a file called game.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.