www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/10:15:40

Xref: news2.mv.net comp.os.msdos.djgpp:2461
From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GNU MAKE NOT WORKING WITH GCC
Date: Thu, 04 Apr 1996 13:55:39 +0200
Organization: TU Chemnitz-Zwickau
Lines: 43
Message-ID: <3163B8BB.3DF8@Mathematik.tu-chemnitz.de>
References: <31626758 DOT 41EE AT nando DOT net>
NNTP-Posting-Host: tantalus-e.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kenneth Targosky wrote:
> 
> I just installed djgpp V.2, gnu for dos.  I also loaded the other gnu
> tools including make.  When I enter the command gcc -I..\h -c calls.c
> the complilation works fine.  When the same command is entered
> via a makefile it does not work.  Make echos the identical command as
> the one entered on the command line but complains, gcc may be doing
> the complaining, that the include files can not be found.
> 
> Any help with this problem would be appreciated.
> 
> Since I am writing I have another question.  In other versions of make
> a for loop is supported.  I try the same loop with gnu and it does not
> work.  Is there any looping capabilties in GMAKE.  An example loop
> follows:
> 
> all:
>                                 for dir in $(DIR);{cd $$dir; make all; cd ..}
> lib:
>                                 for dir in $(DIR);{cd $$dir; make lib; cd ..}
when you put the line

gcc -I..\h -c calls.c

in your makefile, make sees the backslash as an escape character.
Either you put -I../h  or yout have to escape the backslash like
-I..\\

For the second question: The loop above is not supported by make. Make
calls the shell to do the loop and under MS-DOS there is an other syntax
for doing loops. If you want to do such things, which ar supprted by
an unix shell, you need a DOS-port of such a shell and set up the
variable SHELL to point to this shell.


Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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