[Scons-users] C/C++ Object Suffix to include source names

Hua Yanghao huayanghao at gmail.com
Thu Dec 6 17:15:22 EST 2018


Dear Scons Users,
I recently encountered an issue that we have a existing code base that
comes with multiple files of the same name but different suffixes:
e.g. test.c, test.cpp, test.S.

The problem is they are in the same folder (hence will end up in the
same build dir), and all builds to test.o (StaticObject). Is there a
easy/straightforward way in scons that having them to build in a
target name with the full original names, e.g. test.c.o, test.cpp.o,
test.S.o?

Thanks,
Yanghao


More information about the Scons-users mailing list