Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Yury Benesh (aka ybx) on August 15, 2006, 10:25:51 am

Title: targets with makefiles and multiple outputs
Post by: Yury Benesh (aka ybx) on August 15, 2006, 10:25:51 am
To automate the build and to keep dependencies calculated by CB an MS Visual Studio approach to targets is needed, i.e. the ability to specify input files ( it is what we have as sources, it's ok with CB ) and the ability to specify file names that the custom commands produce ( it is what should be added to CB ). I.e. a target can produce not just a library or an exe-file, but it can produce a .CPP and .H for example. ( e.g. BISON/FLEX tools which build a compiler program sources from language description files, and  reswrap tool from FOX toolkit, which embeds graphics etc. data into program by generating byte arrays and producing  .c and .h sources to be compiled with the main program )...
Title: Re: targets with makefiles and multiple outputs
Post by: Yury Benesh (aka ybx) on August 15, 2006, 10:35:21 am
This additional outputs info can also be used by CLEAN command.
Title: Re: targets with makefiles and multiple outputs
Post by: mandrav on August 15, 2006, 10:40:59 am
I think this should be possible with scripting in C::B (http://wiki.codeblocks.org/index.php?title=Scripting_Code::Blocks).
Haven't tried it though...