00001 #include <odinseq/seqmakefile.h>
00002
00008 void usage() {
00009 STD_cout << "genmakefile: Generates a Makefile for ODIN methods" << STD_endl;
00010 STD_cout << "Usage: genmakefile [options] <method-label>" << STD_endl;
00011 STD_cout << "Options:" << STD_endl;
00012 STD_cout << "\t" << LogBase::get_usage() << STD_endl;
00013 STD_cout << "\t" << helpUsage() << STD_endl;
00014 }
00015
00016 int main(int argc, char* argv[]) {
00017 LogBase::set_log_levels(argc,argv);
00018 if(hasHelpOption(argc,argv)) {usage(); return 0;}
00019
00020 char buff[ODIN_MAXCHAR];
00021
00022 if(argc<=1) {usage(); exit(0);}
00023
00024 STD_string methlabel;
00025 if(getLastArgument(argc,argv,buff,ODIN_MAXCHAR)) {
00026 methlabel=buff;
00027 }
00028
00029 SeqMakefile mf(methlabel,INSTALL_PREFIX);
00030 STD_cout << mf.get_Makefile(".") << STD_endl;
00031
00032 return 0;
00033 }