I need to build multiple object file from one c source file. The only variation is that the AM_CFLAGS variable must contain a different -D for each one.
Eg: I have a source file foo.c, I need to build (based on an option from configure) foo1.o foo2.o ... foon.o with an option -DBAR=1 -DBAR=2 ... -DBAR=n. Is this possible, or will I have to write all the rules myself? I am using libtool, these files will be part of a shared library, and ideally, I would like to be able to use automatic dependency tracking via depcomp. I have never written rules for libtool or depcomp before. Please advise me. Thanks in advance, Stephano Mariani
