Silverfrost Forums

Welcome to our forums

i need some help with my makefile

10 Mar 2008 10:42 #2901

Hello people,

for my project I need to use the following makefile. But I would like to use the ftn95 compiler. I have read that one can use the mk32 command. Unfortunatly I have not so much knowlegde of makefiles. Could somebody tell me how I can change this file that I can use it with FTN95. Thx for helping me out!

.SUFFIXES: .o .f .c .f,v

FC = g77 FFLAGS = $(DEBUG) \ -ff90 \ -ff90-intrinsics-enable \ -fdollar-ok \ -finit-local-zero \ -fno-second-underscore \ -fno-underscoring

CFLAGS = -Wall \((DEBUG) -I\)(INCLUDE) DEBUG = -g

REFPROPDIR = refprop8 REFPROP = -L$(REFPROPDIR) -lrefprop8

CO2DIR = co2_spanw CO2LIB = -L$(CO2DIR) -lco2_spanw CO2INC = $(CO2DIR)

TPDIR = tplib TPLIB = -L$(TPDIR) -ltp

OBJS = co2test.o spanwco2_f2c.o

INCLUDE = $(CO2INC)

LIBS =$(REFPROP) \ $(TPLIB) \ $(CO2LIB)

co2test: co2test.o $(OBJS) $(FC) $(DEBUG) -o co2test $(OBJS) $(LIBS)

co2test.o: co2test.f $(FC) $(FFLAGS) -c $<

10 Mar 2008 1:34 #2902

If you look in FTN95.chm you will find help on 'Using MK32'. This includes tutorial examples.

Please login to reply.