FLUENT V6.3 - Makefile for User-Defined Fan Model on Windows


Compiling the executable for the User-Defined fan model on windows requires Fortran and C compilers. The makefile below can be used with Microsoft Visual C++ and Compaq Visual Fortran. It may be necessary to re-define the paths in CTOOLS, FTOOLS and FC. It should also be noted here that to use this makefile, the files fantest.f and wfanp.f must be combined into a single file called fantest.f.
target: fanp.exe
CTOOLS = c:msdevvc98
FTOOLS = c:msdevdf
FC = c:msdevdfinf77
FFLAGS = -names:lowercase -iface:cref,nomixed_str_len_arg -align:dcommons
-align:records -nologo
CPP = $(CTOOLS)incl
CC = $(CTOOLS)incl
LD = link
WIN32=1

LDFLAGS =
/nodefaultlib
$(FTOOLS)/lib/dfor.lib
$(FTOOLS)/lib/dfordll.lib
$(FTOOLS)/lib/dfport.lib
$(FTOOLS)/lib/dfwin.lib
$(FTOOLS)/lib/dfconsol.lib
$(CTOOLS)/lib/oldnames.lib
$(CTOOLS)/lib/kernel32.lib
$(CTOOLS)/lib/advapi32.lib
$(CTOOLS)/lib/user32.lib
$(CTOOLS)/lib/gdi32.lib
$(CTOOLS)/lib/comdlg32.lib
$(CTOOLS)/lib/comctl32.lib
$(CTOOLS)/lib/wsock32.lib
$(CTOOLS)/lib/netapi32.lib
$(CTOOLS)/lib/libcmtd.lib

fanp.exe: fantest.obj
$(LD) fantest.obj rfanp.obj $(LDFLAGS)

fantest.obj: fantest.f
$(FC) $(FFLAGS) -c fantest.f

rfanp.obj: rfanp.c
$(CC) -c rfanp.c





Show Form
No comments yet. Be the first to add a comment!