Thanks very much in advance for any help! I’ve been trying to compile someone else’s fortran software that’s written for many different platforms using old-style “make” scripts (i.e., not automake). I’m hoping someone can spot a syntax problem because it dies claiming there’s no rule to make PREPRC.f, though I see the rule in the makefile - I suspect there’s a format problem in the makefile that SuSE’s make has trouble with: (this is all in tcsh)
make[1]: Entering directory /home/patti/vulk/Ver_6.0.2/Source_code' make[1]: *** No rule to make target
/home/patti/vulk/Ver_6.0.2/Source_code/PREPRC.F’, needed by /home/patti/Vulk/Ver_6.0.2/Source_code/PREPRC.o'. Stop. make[1]: Leaving directory
/home/patti/vulk/Ver_6.0.2/Source_code’
make: *** [inpre] Error 2
Ver_6.0.2/Scripts>
But here’s the makefile where it’s dying… it looks to me like there IS a rule defined to make PREPRC.F - but for some reason, make is not picking it up. The console output above seems to suggest it gets part-way through this makefile until trying to build PREPRC.f - but I do see a “rule” for building “.f” files… so I’m stuck…
#SRC = $(vulkpath)/Source_code
#EXC = $(vulkpath)/Executable
#CPP = cpp
#CPPFLAGS = -P -C
.SUFFIXES: .F $(FSFXFLG)
OBJS= $(SRC)/PREPRC.o
$(SRC)/GBFESI.o
$(SRC)/GENERIC.o
$(SRC)/READ.o
$(SRC)/RDDATA.o
$(SRC)/RDQBC.o
$(SRC)/THERMO.o
$(SRC)/TRANPRT.o
$(SRC)/vulk_MPP.o
$(SRC)/WPARAM.o
$(EXC)/vulk_preprc: $(OBJS)
$(FC) $(FFLAGS) -o $(EXC)/vulk_preprc $(OBJS) $(FLFLAGS)
$(OBJS):
cd $(SRC);
$(CPP) $(CPPFLAGS) $.F > $$(FSFXFLG);
$(FC) $(FFLAGS) -c $$(FSFXFLG);
/bin/rm -f $$(FSFXFLG)
.F$(FSFXFLG):
cd $(SRC);
$(CPP) $(CPPFLAGS) $.F > $$(FSFXFLG)
.F.o:
cd $(SRC);
$(CPP) $(CPPFLAGS) $.F > $$(FSFXFLG);
$(FC) $(FFLAGS) -c $$(FSFXFLG);
/bin/rm -f $$(FSFXFLG)
$(FSFXFLG).o:
cd $(SRC);
$(FC) $(FFLAGS) -c $*$(FSFXFLG)
.F:
cd $(SRC);
$(CPP) $(CPPFLAGS) $.F > $$(FSFXFLG);
$(FC) $(FFLAGS) -c $*$(FSFXFLG)
$(FSFXFLG):
cd $(SRC);
$(FC) $(FFLAGS) -c $*$(FSFXFLG)
$(SRC)/PREPRC.o : $(SRC)/PREPRC.F
$(SRC)/GBFESI.o : $(SRC)/GBFESI.F
$(SRC)/GENERIC.o : $(SRC)/GENERIC.F
$(SRC)/READ.o : $(SRC)/READ.F
$(SRC)/RDDATA.o : $(SRC)/RDDATA.F
**Can any experts in MAKE help me with this? I’m totally stuck and know almost nothing about this syntax - I just need to compile it.
THANK YOU!!!
Patti
**