delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/06/20:28:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Andrew Jacka <andrew AT hsa DOT com DOT au>
Organization: HSA Systems Pty Ltd
To: cygwin AT cygwin DOT com
Subject: Makefile *** missing separator
Date: Mon, 7 Jul 2003 10:27:15 +1000
User-Agent: KMail/1.5.1
MIME-Version: 1.0
Message-Id: <200307071027.15202.andrew@hsa.com.au>

Hi,

I have a question about gnumake under cygwin...
I am getting an error "*** missing separator" compliling using a home-baked 
makefile.   

The following is the segment of the Makfile that is causing the problem.   The 
error refers to the line starting with $(LIB)
----------------------------------------------------
$(LIB): $(LIB)($(OBJS)) $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(LDLIBS) $^
----------------------------------------------------
The segment above is part of a top-level makefile that defines a set of 
standard make targets.   The problem only arises when $(LIB) is not defined 
in the makefile that includes the top level one.

This exact makefile setup works fine on Linux, BSD and Solaris.   Just not 
Cygwin.

I have checked the usual suspects... (ie There is a tab before the $(CC) line 
and there are no CR/LF issues.

Cheers

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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