forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

i need some help with my makefile

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
jamaika83



Joined: 03 Mar 2008
Posts: 1

PostPosted: Mon Mar 10, 2008 11:42 am    Post subject: i need some help with my makefile Reply with quote

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 $<
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7926
Location: Salford, UK

PostPosted: Mon Mar 10, 2008 2:34 pm    Post subject: Reply with quote

If you look in FTN95.chm you will find help on "Using MK32".
This includes tutorial examples.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group