[Top][All Lists]

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

Re: Generating two binaries

From: Bruce Korb
Subject: Re: Generating two binaries
Date: Thu, 11 Jul 2002 11:29:31 -0700

Wei Qin wrote:
> Hi,
>         I need to generate two binaries from the same source code. The
> difference of the two are only compile time macro definitions. I need one
> version with  "-DNO_PAGE_CACHE" and the other version without.
>         What should I do in in order to generate the two?

For two separate executables:

Otherwise, if you are referring to object code:

  mumble-flag.o : mumble-flag.c
  mumble-flag.c : mumble.c
        ( echo '#define NO_PAGE_CACHE 1' ; \
          echo '#include "mumble.c"' ) > $@

crude but effective.

Say, Tom, is there a FAQ for this?  I don't see a faq
reference in

Bruce Korb <first initial + last name at gnu dot org>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]