Mail Archives: djgpp/1996/04/05/10:15:40
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 -