delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/03/18:47:36

Xref: news2.mv.net comp.os.msdos.djgpp:3402
From: Student AT gc DOT maricopa DOT edu (A. Student)
Newsgroups: comp.os.msdos.djgpp
Subject: Repost: Problems with Make (building libc.a)
Date: 2 May 1996 21:24:23 GMT
Organization: Glendale Community College
Lines: 28
Message-ID: <4mb967$9s0@news.maricopa.edu>
NNTP-Posting-Host: h2p10j.gc.maricopa.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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
is even calling as.exe to assemble these programs.  I know how to write 
simple makefiles, but the one used to build libc.a perplexs me.  Here is 
an example of what is happening: (from memory)
>...
>make:
>  as -o compat\gnu\some_asm.o compat\gnu\some_asm.s
>make: Error in compat\gnu\some_asm.s, aborting... 
>
(as.exe barfed on the C style comment in some_asm.s)

The makefile in compat\gnu clearly defines each file as .S and not .s so 
I don't understand the problem.  Example:

>SRC += some_prog.c
>SRC += some_asm.S
>
>include $BASE\..\makefile.lib

These are not true examples, just ones I came up with in my head, but 
they state the problem.  Is there any workaround to this?


Josh
snarfy AT goodnet DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019