Discussion:
ignore subdir-objects for one file
Basin Ilya
2015-12-28 15:29:57 UTC
Permalink
Hi.
I need to compile same source file multiple times with different CFLAGS

When automake option "subdir-objects" becomes default, will it be
possible to put SOME object files to current directory instead of source
directory?

I tried to write my own rule, but I want to reuse automake's recipe for
'.c.o:' to have dependency tracking.

I don't want to resort to copying source files to current directory.
Andrew W. Nosenko
2015-12-29 09:22:48 UTC
Permalink
Post by Basin Ilya
Hi.
I need to compile same source file multiple times with different CFLAGS
When automake option "subdir-objects" becomes default, will it be
possible to put SOME object files to current directory instead of source
directory?
Put them into static or libtool "convenience" libraries and override CFLAGS
on per-library basis.
--
Andrew W. Nosenko <***@gmail.com>
Basin Ilya
2015-12-29 13:00:25 UTC
Permalink
Cool, that really worked.
Post by Basin Ilya
Hi.
I need to compile same source file multiple times with different CFLAGS
When automake option "subdir-objects" becomes default, will it be
possible to put SOME object files to current directory instead of source
directory?
Put them into static or libtool "convenience" libraries and override
CFLAGS on per-library basis.
--
Loading...