View previous topic :: View next topic |
Author |
Message |
jamaika83
Joined: 03 Mar 2008 Posts: 1
|
Posted: Mon Mar 10, 2008 11:42 am Post subject: i need some help with my makefile |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Mon Mar 10, 2008 2:34 pm Post subject: |
|
|
If you look in FTN95.chm you will find help on "Using MK32".
This includes tutorial examples. |
|
Back to top |
|
|
|