#! /bin/sh # @configure_input@ #---------------------------------------------------------------------------# # Copyright (C) 1995-1997 The University of Melbourne. # This file may only be copied under the terms of the GNU General # Public License - see the file COPYING in the Mercury distribution. #---------------------------------------------------------------------------# # C2INIT - Convert *.c to *_init.c # # This script outputs an appropriate init.c, given the .c files. # Type `c2init --help' for usage message. # # IMPORTANT: the manpage is produced automatically from this help # message, so if you change the help message, don't forget to check # that the manpage still looks OK. Help="\ Name: c2init - Create Mercury initialization file. Usage: c2init [options] modules ... Options: -l, --library Don't generate a \`main()' function. Instead, generate a function mercury_main(int argc, char **argv); (declared in \"init.h\") that can be called from C code. (A more fine-grained interface is also available; see \"init.h\" for details.) -c , --max-calls Break up the initialization into groups of at most function calls. (Default value of is 40.) -w