discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUmakfiles - sources must be in project's root?


From: Richard Frith-Macdonald
Subject: Re: GNUmakfiles - sources must be in project's root?
Date: Wed, 26 Aug 2009 10:51:00 +0100


On 26 Aug 2009, at 10:31, Juergen Lorenz Simon wrote:

Hi,

I'm trying to shoehorn GNUstep onto an existing project. During the creation of the GNUstep makefile (originally I had the luxury of cmake), I found I could not add sources like this:

foo_OBJC_FILES = src/App/main.mm \
        src/App/Protocol.mm \
        ...

The result in calling make -f GNUmakefile is:

This is gnustep-make 2.2.0. Type 'make print-gnustep-make-help' for help.
Making all for objc_program foo...
make[2]: *** No rule to make target `obj/src/App/main.mm', needed by `obj/foo'. Stop.

The question is: how do I add sourcefiles, which are organized in several subdirectories, to the GNUmakefile without having to create subprojects or reorganize the project layout? I perused the GNUstep module and application sources, I can't seem to find example.

I think the short answer is "you don't" ... that's what subprojects are for. There's probably a way to do it, but part of what makes gnustep-make so simple and easy to use is conforming to the well defined and consistent patterns it uses.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]