FS#9644 - Build directory names containing ".c" or ".S" cause make to fail.

Attached to Project: Rockbox
Opened by Davide (Davide-NYC) - Monday, 15 December 2008, 00:13 GMT
Last edited by Björn Stenberg (zagor) - Monday, 15 December 2008, 10:02 GMT
Task Type Bugs
Category Build environment
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When using sim directories that contain the strings ".c" or ".S" they get replaced with ".o" and the build process fails.

Example error message: make: *** No rule to make target `/home/Administrator/rockbox/sim.olip/uisimulator/sdl/button.o', needed by `/home/Administrator/rockbox/sim.clip/uisimulator/libuisimulator.a'. Stop.

Nils identified the problem at tools/functions.make:28
This task depends upon

Closed by  Björn Stenberg (zagor)
Monday, 15 December 2008, 10:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r19443
Comment by Nils Wallménius (nls) - Monday, 15 December 2008, 00:15 GMT
further investigation showed that this substitution happens in 3 places.
The attached patch makes a build work again using basename and addsuffix to
strip suffixes and add ".o" to the basename, i'm not sure that's a good idea though
as it will add all kinds of files to the obj lists.