[Click] Building elements as a package
Eddie Kohler
kohler at cs.ucla.edu
Thu Mar 23 13:06:09 EST 2006
Rajendra,
Click package makefiles are pretty simple and I would recommend you stick to
the Click system. It is a major headache to build makefiles that work with
userlevel, linux 2.4, and linux 2.6.
Click package makefiles work as follows.
- Create a directory like etc/samplepackage
- Dump .cc and .c files in that directory
- Decorate those .cc and .c files with ELEMENT_PROVIDES()/EXPORT_ELEMENT()
statements
- The makefile system should find all of those .cc/.c files and compile and
link them together.
If you say a bit more about what cmake is doing for you someone on the list
may be able to help.
automake is not the right approach for Click, btw.
Eddie
Rajendra J. Magar wrote:
> Hi,
>
> I am trying to develop my project as a packge in Click. I was wondering
> if there is a good documentation on how to make changes to Makefile.in?
> Up until now I have been using 'cmake', which automatically generates
> Makefile for further build. I wanted to be able to port all my 'cmake'
> commands to Click, and so, while searching for a way to do that, I found
> that I would have to make corresponding changes to Makefile.in given in
> etc/samplepackage, but I am not sure how I would go about doing that.
> Apparently, there's 'automake' for automatically generating Makefile.in,
> but I am guessing this is not the right approach. If you could point me
> to a documentation on writing Makefile.in, that would be great.
>
> Thank you,
> Raz Magar
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list