Hi,
What's the reason behind putting all `-I' stuff in DEFS? I would like
to pass a few -D to m4, but don't want the `-I':s.
I thought I'd just put
DEFS = @DEFS@ -DMY_DEF
in Makefile.am. But then I lose a couple of -I:s, most annoyingly the
top build directory (`@CONFIG_INCLUDE_SPEC@' ?).
The background is that we want to preprocess some assembly code with
m4 before assembling it. It needs -DPIC for .lo. Is there a way of
telling libtool how to do that? For now, we do
.asm.lo:
$(M4) -DPIC $< >tmp-$*.s
$(LTCOMPILE) -c tmp-$*.s -o $@
$(M4) $< >tmp-$*.s
$(COMPILE) -c tmp-$*.s -o $*.o
rm -f tmp-$*.s
which isn't too nice.
Thanks,
--linus