delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/11/04:02:18

Date: Wed, 11 Mar 1998 11:02:05 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Hao Lai <hlai AT irus DOT rri DOT on DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: problem with makefile
In-Reply-To: <35054FD2.C5064503@irus.rri.on.ca>
Message-ID: <Pine.SUN.3.91.980311110138.7344E-100000@is>
MIME-Version: 1.0

On Tue, 10 Mar 1998, Hao Lai wrote:

> 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

The error message indicates that Bash is not invoked.  The most
probable cause for this is that you don't have sh.exe which is a
``symlink'' to bash.exe.  Try running your Makefile again after typing
the following from the DOS prompt:

	      ln -s c:/djgpp/bin/bash c:/djgpp/bin/sh

(this assumes `ln' from the ported Fileutils package).

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

In general, you should avoid semi-colons at the end of the command
lines: they are redundant and aren't supported by the DJGPP port of
Make unless the Makefile says "SHELL=/bin/sh".  But they *did* work
for me when Bash is invoked by Make.

- Raw text -


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