[Top][All Lists]

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

source files in subdirs and VPATH build

From: Guillaume Rousse
Subject: source files in subdirs and VPATH build
Date: Wed, 10 Jan 2007 11:56:09 +0100
User-agent: Thunderbird (X11/20070105)


My source tree is something as

My current option is to build object files in the same directory as the
corresponding ource file (actually, it is ocaml compiler defaut
behaviour). It makes computing object files list quite easy:
MYSOURCEFILES = subdir/ subdir/

Howevever it breaks VPATH build for object files in subdirectories, as
it tries to output a file in a non-existing build subdirectory...

Is there a a way to pre-create all those subdirectories in my build tree
if they don't pre-exist ?

Other alternative is to switch compilation model to always output object
files in local directory, rather as in original source subdirectory.
Howeverm then I'll have to find a make-portable way to compute a list of
files from another one by applying a function to each member, as in GNU make
MYSOURCEFILES = subdir/ subdir/

I don't really care if VPATH build is GNU-make specific, but I have to
ensure standard build is portable however.

reply via email to

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