delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/25/00:16:37

From: vance AT deneb DOT com (Stephen Vance)
Subject: Re: Using vpath directive in makefiles
25 Sep 1998 00:16:37 -0700 :
Message-ID: <360A56E5.85FEB22D.cygnus.gnu-win32@deneb.com>
References: <19980923204055 DOT 29972 DOT qmail AT findmail DOT com>
Mime-Version: 1.0
To: Alejandro Olchik <aolchik AT digitel DOT com DOT br>
Cc: gnu-win32 AT cygnus DOT com

Alejandro Olchik wrote:

> I´m having problem when using the vpath directive in a makefile. I have cywin B19 installed and I´m running make in unix mode.
>
> Look at the followin makefile
>
> vpath %.s //s/multinos/prj/nr1100/startup
>
> start.o:  start.s
>         copy $< $@
>
> When trying to execute it I receive the following message
> make: *** No rule to make target `start.s', needed by `start.o'.  Stop.
>
> Am I doing something wrong? The make program does not have to search for the .s file at the vpath directories?
>
> -----
> Free e-mail group hosting at http://www.eGroups.com/
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".

 I've had problems like this, as well, even though the makefiles work with GNU make on Solaris.  Instead, I ended up having to do
pattern rules like

%.o: //s/multinos/prj/nr1100/startup/%.s

for each of the desired vpath components.

--
Stephen Vance                           |  http://www.deneb.com
Deneb Robotics, Inc.                    |  mailto:vance AT deneb DOT com
5500 New King Street                    |  Phone: (248) 267-9696
Troy, MI 48098-2615                     |  Fax:   (248) 267-8585

What is done well is done quickly enough. -Augustus Caesar



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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