This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problems with make under cygwin


Hi,

I have recently installed cygwin and make components onto a PC.
I have a working makefile for a set of Fortran programs that works
fine with Solaris machine, but when I try these under cygwin I get
the following error:

Target pattern contains no '%'

I'm a bit confused because I can't see any difference in the syntax
required yet I get an error on one platform but not on the other. Perhaps
there is a difference between gnumake and sun make?

The relevant text in the makefile is

----makefile---
# Binary targets

$(targets): $$($$@_bases:%=$(OBJDIR)/%.o) $$($$@_libs:%=lib%)

$(LINK.F) -o $(BINDIR)/$@ $($@_bases:%=$(OBJDIR)/%.o) $($@_libs:%=-l%) \

$($@_extras) $($@_libs:%=-l%)

# Implicit object file targets

# Checks source files and include files for changes

#$@ target $< dependant

$(OBJDIR)/%.o: $(SRCDIR)/%.f $(INCFILES)

umask 002

$(COMPILE.f) -o $@ $<

$(OBJDIR)/%.o: $(SRCDIR)/%.F $(INCFILES)

umask 002

$(COMPILE.F) -o $@ $<

# My other libraries upon which this depends

lib%:

cd $(LIBRARY)/$(@:lib%=%) ; $(MAKE)

---makefile end---





Cheers for any help



Ricky




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]