Mail Archives: djgpp/1998/03/10/11:00:53
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 -