Mail Archives: djgpp/1996/05/05/07:26:40
On 2 May 1996, A. Student wrote:
> I am having a problem with Make. When I try to build libc.a, make is
> calling all of the .S files as .s files, hence it is not preprocessing
> each file correctly. I cannot find anywhere in the makefile where it
In this case, you don't use the right tools (like DJ already told you),
but it might sometimes help to know that there are ways to force GCC
invoke the correct programs even if its default rules fail. The
"-x language" switches are there to do just that. For instance, to tell
gcc that file.s should be passed through cpp first, say this:
gcc -x assembler-with-cpp -c file.s
- Raw text -