delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/18/13:35:38

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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: Problems with Make, VPATH and MS-DOS paths
Date: Tue, 18 Nov 2003 10:35:07 -0800
Lines: 20
Message-ID: <bpdoos$lls$3@sea.gmane.org>
References: <NGBBLLIAMFLGJEOAJCCEGEFIDGAA DOT garbage_collector AT telia DOT com> <YW4165DBJI2UA8DBATSBWUNHZU85V DOT 3fb9271b AT marlin4>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en
In-Reply-To: <YW4165DBJI2UA8DBATSBWUNHZU85V.3fb9271b@marlin4>

Nate Bohlmann wrote:

> How exactly does a command line tool help with VPATH'ing inside of Make?

You use cygpath to generate names to pass to your broken compiler. (Yes,
broken - Win32, and most tools running on it like VC++, are perfectly
happy with "/" as path separators).

I.e. instead of just doing

.c.o:
	$(BROKENCOMPILER) -c $? -o $*.o		# or whatever

You do

.c.o:
	$(BROKENCOMPILER) -c `cygpath -w $?` -o `cygpath -w $*`.o

(Those are back-quotes, by the way).



--
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