www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/10/11:00:53

From: Hao Lai <hlai AT irus DOT rri DOT on DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem with makefile
Date: Tue, 10 Mar 1998 09:36:03 -0500
Organization: The University of Western Ontario, London, Ont. Canada
Lines: 99
Message-ID: <35054FD2.C5064503@irus.rri.on.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980310104625 DOT 3898L-100000 AT is>
Reply-To: hlai AT irus DOT rri DOT on DOT ca
NNTP-Posting-Host: ts1-17.slip.uwo.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thank you for the quick response.  I did download bash and other
utilities, such as mv, ls and etc.  Here are the makefiles:

The following is the makefile in the top of the directory
*********************************************************************
SHELL = /bin/sh
CC = gcc
INCLUDE = -I./include
CCFLAGS = -O2
LDFLAG =
LIBS = -lm

SUBDIR1 = ./util

all : main

main : main.c stopW
 -$(CC) $(INCLUDE) $(CCFLAGS) -o hello.exe $@.c $(util) $(LIBS)

util = $(SUBDIR1)/stopW.o

stopW :
 cd $(SUBDIR1); $(MAKE) all;

clean :
 del main.o
 cd $(SUBDIR1); $(MAKE) clean;

strip :
 strip hello.exe
******************************************************************

The following is the makefile in the top directory / util directory

SHELL = /bin/sh
CC = gcc
INCLUDE = -I../include
CCFLAGS = -Wall -O2

all : stopWatch

stopWatch : stopW.c
 -$(CC) $(CCFLAGS) $(INCLUDE) -c stopW.c

clean :
 del stopW.o
********************************************************************
Here is the output when I run make:

bash$ make
cd ./util; c:/djgpp/bin/make.exe all;
make.exe[1]: Entering directory 'c:/home/hlai/src/util'
gcc -Wall -O2 -I../include -c stopW.c
make.exe[1]: Leaving directory 'c:/home/hlai/src/util'
No command name seen.
make.exe: *** [stopW] Error -1

bash$

*****************************************************************

Please help.  Thanks again.

Hao Lai
hlai AT irus DOT rri DOT on DOT ca

Eli Zaretskii wrote:

> On Mon, 9 Mar 1998, Hao Lai wrote:
>
> > make.exe[1]: Leaving directory 'c:\home\hlai\src\util'
> > No command name seen.
> > make.exe: ***[stopW] Error -1
>
> Please make a point of posting at least some part(s) of the
> Makefile(s) when reporting such problems.  It is very hard to
> second-guess your problems without any clue about what did you ask
> Make to do.
>
> The following is based on guesswork.  Don't blame me if it turns out
> that my guess is totally wrong.
>
> I think that you are trying to run a Makefile which assumes a
> Unix-style shell, and some of its rules use syntax that only
> Unix-style shells understand.  If that is indeed the case, you will
> need to download and install the DJGPP port of Bash
> (v2gnu/bshNNNNb.zip, where NNNN is the version number) and possibly
> some other utilities, such as `cp', `rm', `mv' and others, if the
> rules call them.  You will also need to make sure the Makefile(s) have
> a line like this near the beginning:
>
>        SHELL = /bin/sh
>
> I suggest to read the file README.dos in the DJGPP Make distribution,
> especially the sections called "The shell issue" and "SHELL=/bin/sh --
> or is it?".



- Raw text -


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