2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Main for genmodule. A tool to generate files for building modules.
9 int main(int argc
, char **argv
)
12 struct config
*cfg
= initconfig(argc
, argv
);
19 if (cfg
->options
& OPTION_AUTOINIT
)
21 writeautoinit(cfg
, 0); /* normal */
22 writeautoinit(cfg
, 1); /* relbase */
24 if (cfg
->options
& OPTION_STUBS
)
26 writestubs(cfg
, 0); /* normal */
27 writestubs(cfg
, 1); /* relbase */
32 if (!(cfg
->options
& OPTION_INCLUDES
))
34 fprintf(stderr
, "%s called with writeincludes when no includes are present\n", argv
[0]);
37 writeincproto(cfg
, 0); /* normal */
38 writeincproto(cfg
, 1); /* relbase */
53 /* Ignore the functionlist and the methodlist that are available in the
57 if (cfg
->classlist
!= NULL
)
58 cfg
->classlist
->methlist
= NULL
;
72 fprintf(stderr
, "Internal error in main: Unhandled command type\n");