emamm
12-08-2003, 07:32 PM
Hello
I need desperately to convert a makefile that I use on linux to one on windows. On windows I am running Lahey (simple command lines with just the basics).
Here is what I did to convert the Makefile to windows-Lahey.
PROG = genrandom
SRCS = f2kcli.for model.for funstrings.for stat.for l90rand.for genrandom.for
OBJS = f2kcli.obj model.obj funstrings.obj stat.obj l90rand.obj genrandom.obj
LIBS =
F90 = lf95
F90FLAGS = -chkglobal -g
LDFLAGS =
all: $(PROG)
$(PROG): $(OBJS)
$(F90) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(PROG) $(OBJS)
install:
mv -f genrandom ../
.SUFFIXES: $(SUFFIXES) .for
.for.out:
$(F90) $(F90FLAGS) -c $<
Unfortunately make returns an error:
No rule to make target f2kcli.obj
What am I doing wrong?
Many thanks
Ed
I need desperately to convert a makefile that I use on linux to one on windows. On windows I am running Lahey (simple command lines with just the basics).
Here is what I did to convert the Makefile to windows-Lahey.
PROG = genrandom
SRCS = f2kcli.for model.for funstrings.for stat.for l90rand.for genrandom.for
OBJS = f2kcli.obj model.obj funstrings.obj stat.obj l90rand.obj genrandom.obj
LIBS =
F90 = lf95
F90FLAGS = -chkglobal -g
LDFLAGS =
all: $(PROG)
$(PROG): $(OBJS)
$(F90) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(PROG) $(OBJS)
install:
mv -f genrandom ../
.SUFFIXES: $(SUFFIXES) .for
.for.out:
$(F90) $(F90FLAGS) -c $<
Unfortunately make returns an error:
No rule to make target f2kcli.obj
What am I doing wrong?
Many thanks
Ed