Re: [gtk-list] autoconf/automake: conditional compilation/linking



>>>>> ">" == PeopleSoft  <Robert_Gasch> writes:

>> files = main.cc file1.cc file2.cc
>> #if LIBFLAG
>>      prog_SOURCES = $(files) file3.cc
>> #else
>>      prog_SOURCES = $(files)
>> #endif

Remove the `#' -- that is the comment character.

>> I've tried #if, #ifdef, the shell script type if and anything else
>> that seems reasonable but have never gotten to the point where
>> file3.cc is actually appended to the build list. Could anybody
>> enlight me as to what I'm doing wrong?

RTFM.  I believe conditionals are adequately described in the automake
manual.

Tom



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]