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
->modtype
== LIBRARY
)
26 writegetlibbase(cfg
, 0); /* normal */
27 writegetlibbase(cfg
, 1); /* relbase */
29 if (cfg
->options
& OPTION_STUBS
)
31 writestubs(cfg
, 0); /* normal */
32 writestubs(cfg
, 1); /* relbase */
37 if (cfg
->options
& OPTION_INCLUDES
)
44 if (cfg
->interfacelist
)
45 writeincinterfaces(cfg
);
57 /* Ignore the functionlist and the methodlist that are available in the
61 if (cfg
->classlist
!= NULL
)
62 cfg
->classlist
->methlist
= NULL
;
76 fprintf(stderr
, "Internal error in main: Unhandled command type\n");