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): $$([EMAIL PROTECTED]:%=$(OBJDIR)/%.o) $$([EMAIL PROTECTED]:%=lib%)

$(LINK.F) -o $(BINDIR)/$@ $([EMAIL PROTECTED]:%=$(OBJDIR)/%.o) $([EMAIL 
PROTECTED]:%=-l%) \

$([EMAIL PROTECTED]) $([EMAIL PROTECTED]:%=-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/

Reply via email to