362
K
A
DAK
Generator Specifications
C.4 Porting the Configuration Generator
The Configuration Manager uses the Configuration Generator to generate your System
Configuration Module. If you are not doing your development on a PC or compatible,
you may wish to port the Configuration Generator to your development system.
The Configuration Generator is a utility program provided with AMX. The program is
written in C with portability in mind. Source file AM831CG.C is delivered with AMX.
To port the Configuration Generator to your development system, compile the module
AM831CG.C using your C compiler. Link the resulting object module with your C Run-
Time Library to produce a version of the Configuration Generator which will execute in
your environment.
The command line syntax to run the Configuration Generator is as follows.
AM831CG upfname ctfname scfname -q -w -bsss -esss
upfname User Parameter File filename
ctfname System Configuration Template filename
scfname System Configuration Module filename
All three filenames must be present in the order specified. Each must include the full
path to the file if the file is not in the current directory. Each filename must include both
name and extension.
Command line switches beginning with - are optional and must follow the filenames.
The -q (quiet) switch, if present, will inhibit the display of all informational or error
messages on the standard output device (stdout). This switch is used by the
Configuration Manager to inhibit the Configuration Generator from writing to the display
screen when it is invoked by the manager.
The Configuration Generator will ignore a KADAK macro in the template file if the User
Parameter File contains no instances of the macro keyword. By default, there is no
indication in the output file that the unused macro has been stripped. If the -w switch is
used, the Configuration Generator will echo the macro definition statement to the output
file and follow it with the comment "Unused in this configuration".