[riot-devel] Naming of source files
hauke.petersen at fu-berlin.de
Mon Jan 13 11:24:18 CET 2014
On 13.01.2014 11:21, Kaspar Schleiser wrote:
> On 01/13/14 09:53, Hauke Petersen wrote:
>> PRJDIR/xy/aa/abc.c --> BINDIR/project_xy_aa_abc.o
>> This way, no conventions for naming files would be needed anywhere,
>> while naming space collitions should be impossible. And the solution
>> would only affect some Makefiles, so the 'User'-developer would not even
>> need to know much about it. What do you think?
> Why again don't we just use the original folder names?
> PRJDIR/xy/aa/abc.c --> BINDIR/xy/aa/abc.o
> That way name collisions are impossible.
> Encoding the folder name could lead to
> PRJDIR/xy/aa/abc.c --> BINDIR/xy_aa_abc.o
> PRJDIR/xy_aa/abc.c --> BINDIR/xy_aa_abc.o BOOM!
> Sounds ridiculous? Yeah, but imagine debugging that...
Japp, haven't thought about this (maybe not soo probable) case -> you
The drawback I see with keeping the original folder structure in the
BINDIR is, that the folder names are getting even longer. Could this
lead to problems on host platforms (-->WIN)?
> devel mailing list
> devel at riot-os.org
More information about the devel