bug-automake
[Top][All Lists]
Advanced

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

CPPASCOMPILE doesn't use $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)


From: Ralf Corsepius
Subject: CPPASCOMPILE doesn't use $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
Date: Wed, 11 Oct 2006 10:12:33 +0200

Hi,

with automake-cvs/HEAD, and using *.S, CPPASCOMPILE doesn't apply
$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) to its compilation rules.

>From a Makefile.in:
CPPASCOMPILE = $(CCAS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) \
        $(CCASFLAGS)

IMO, as *.S sources are supposed to be preprocessed, it would be better
to let CPPASCOMPILE be processed the same way *.c sources are, i.e. to
apply "$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)":

C-COMPILE from a Makefile.in:
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

IMO, though this would introduce an inconsistency to *.s
(non-preprocessed asm sources) this probably would help users to be
facing inconsistencies between *.S and *.c/*.cc/*.f etc. languages
(which use $(DEFS) etc.).

Opinions?

Ralf






reply via email to

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