This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: adding specific C flags for a SINGLE source file


Alexandre,

>      bin_PROGRAMS = foo
>      foo_SOURCES = bar.c bar.h main.c
>      foo_CFLAGS = -some -flags
>      foo_LDADD = libfoo.a
>      noinst_LIBRARIES = libfoo.a
>      libfoo_a_SOURCES = foo.c foo.h
>      libfoo_a_CFLAGS = -some -other -flags

Well, like all 'good answers' this one is obvious:  I should have thought
of it myself.  Thank you!

What you've written would be a nice addition to the FAQ.

Thank you again!

Cheers,
	Bruce




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]