/* * Program entry point. */ void main( int argc, char *argv[] ) /*********************************/ { OPT_STORAGE cmdOpts; CmdLine * cmdLine; #ifndef __WATCOMC__ _argc = argc; _argv = argv; #endif /*** Initialize ***/ SetBannerFuncError( BannerMessage ); cmdLine = InitCmdLine( NMAKE_NUM_SECTIONS ); /*** Parse the command line and translate to Watcom options ***/ InitParse( &cmdOpts ); do_parsing( &cmdOpts ); OptionsTranslate( &cmdOpts, cmdLine ); /*** Spawn the librarian ***/ nmake( &cmdOpts, cmdLine ); FiniParse( &cmdOpts ); exit( EXIT_SUCCESS ); }
/* * Program entry point. */ void main( int argc, char *argv[] ) /*********************************/ { OPT_STORAGE cmdOpts; CmdLine * cmdLine; int itemsParsed; #ifndef __WATCOMC__ _argc = argc; _argv = argv; #endif /*** Initialize ***/ SetBannerFuncError( BannerMessage ); cmdLine = InitCmdLine( LINK_NUM_SECTIONS ); SetDefaultFile( TYPE_OBJ_FILE, "object" ); AllowTypeFile( TYPE_OBJ_FILE, TYPE_LIB_FILE, TYPE_RES_FILE, TYPE_RBJ_FILE, TYPE_RS_FILE, TYPE_EXP_FILE, TYPE_INVALID_FILE ); /*** Parse the command line and translate to Watcom options ***/ InitParse( &cmdOpts ); itemsParsed = do_parsing( &cmdOpts ); if( itemsParsed == 0 ) { PrintHelpMessage(); exit( EXIT_SUCCESS ); } OptionsTranslate( &cmdOpts, cmdLine ); /*** Spawn the linker ***/ if( link( &cmdOpts, cmdLine ) == LINK_NOACTION ) { FatalError( "Nothing to do!" ); } FiniParse( &cmdOpts ); exit( EXIT_SUCCESS ); }
/* * Program entry point. */ void main( int argc, char *argv[] ) /*********************************/ { OPT_STORAGE cmdOpts; CmdLine * compCmdLine; CmdLine * linkCmdLine; int itemsParsed; int compRc = COMPILE_NOACTION; int linkRc = LINK_NOACTION; #ifndef __WATCOMC__ _argc = argc; _argv = argv; #endif /*** Initialize ***/ SetBannerFuncError( BannerMessage ); compCmdLine = InitCmdLine( CL_C_NUM_SECTIONS ); linkCmdLine = InitCmdLine( CL_L_NUM_SECTIONS ); SetDefaultFile( TYPE_C_FILE, "source" ); AllowTypeFile( TYPE_C_FILE, TYPE_CPP_FILE, TYPE_DEF_FILE, TYPE_OBJ_FILE, TYPE_LIB_FILE, TYPE_RES_FILE, TYPE_INVALID_FILE ); InitMacro(); /*** Parse the command line and translate to Watcom options ***/ InitParse( &cmdOpts ); itemsParsed = do_parsing( &cmdOpts ); if( itemsParsed==0 || cmdOpts.help ) { if( !cmdOpts.nologo ) BannerMessage(); PrintHelpMessage(); exit( EXIT_SUCCESS ); } OptionsTranslate( &cmdOpts, compCmdLine, linkCmdLine ); /*** Spawn the compiler ***/ compRc = compile( &cmdOpts, compCmdLine ); if( compRc == COMPILE_ERROR ) exit( EXIT_FAILURE ); if( !cmdOpts.c ) { linkRc = link( &cmdOpts, linkCmdLine ); } if( compRc == COMPILE_NOACTION && linkRc == LINK_NOACTION ) { FatalError( "Nothing to do!" ); } FiniParse( &cmdOpts ); exit( EXIT_SUCCESS ); }
/* * Program entry point. */ void main( int argc, char *argv[] ) /*********************************/ { OPT_STORAGE cmdOpts; int itemsParsed; int rc = CVTRES_NOACTION; #ifndef __WATCOMC__ _argc = argc; _argv = argv; #endif /*** Initialize ***/ SetBannerFuncError( BannerMessage ); SetDefaultFile( TYPE_RES_FILE, "res" ); AllowTypeFile( TYPE_RES_FILE, TYPE_INVALID_FILE ); /*** Parse the command line ***/ InitParse( &cmdOpts ); itemsParsed = do_parsing( &cmdOpts ); if( itemsParsed==0 || cmdOpts.help ) { PrintHelpMessage(); exit( EXIT_SUCCESS ); } /*** Do the conversion ***/ rc = res_convert( &cmdOpts ); switch( rc ) { case CVTRES_ERROR: exit( EXIT_FAILURE ); break; case CVTRES_NOACTION: FatalError( "Nothing to do!" ); break; case CVTRES_SUCCESS: FiniParse( &cmdOpts ); exit( EXIT_SUCCESS ); break; default: Zoinks(); } }
/* * Program entry point. */ void main( int argc, char *argv[] ) /*********************************/ { OPT_STORAGE cmdOpts; CmdLine * cmdLine; int itemsParsed; int rc = RC_NOACTION; /*** Initialize ***/ SetBannerFuncError( BannerMessage ); cmdLine = InitCmdLine( RC_NUM_SECTIONS ); SetDefaultFile( TYPE_RC_FILE, "rc" ); AllowTypeFile( TYPE_RC_FILE, TYPE_INVALID_FILE ); /*** Parse the command line and translate to Watcom options ***/ InitParse( &cmdOpts ); itemsParsed = do_parsing( &cmdOpts ); if( itemsParsed==0 || cmdOpts.help ) { PrintHelpMessage(); exit( EXIT_SUCCESS ); } OptionsTranslate( &cmdOpts, cmdLine ); /*** Spawn the compiler ***/ rc = res_compile( &cmdOpts, cmdLine ); switch( rc ) { case RC_ERROR: exit( EXIT_FAILURE ); break; case RC_NOACTION: FatalError( "Nothing to do!" ); break; case RC_SUCCESS: FiniParse( &cmdOpts ); exit( EXIT_SUCCESS ); break; default: Zoinks(); } }