Using vpath directive in makefiles

Stephen Vance vance@deneb.com
Thu Sep 24 11:49:00 GMT 1998


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@cygnus.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@deneb.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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list