On 02/03/12 01:24, MacArthur, Ian (SELEX GALILEO, UK) wrote:
> Though my strong recommendation is just to have a simple Makefile and
> just have the IDE call that directly (in my experience, all that Eclipse
> does is write its own Makefile anyway, in a really scrappy style that is
> hard to read - so why not just provide it with a nice one that actually
> does what you want?)

        Right; this is what I do with fluid (not an IDE, but can kinda
        be used like one).

        When I hit Alt-G in fluid to 'build', I just have it run
        'make buildandrun' which is a Makefile target that builds the app
        then runs it if the build succeeded.

        The Makefile ends up being very simple:

default: hello

hello: hello.cpp hello.h
        fltk-config --compile hello.cpp

buildandrun: hello
        ./hello

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to