linux 下 fluent UDF 用的 makefile
Linux 下编译 fluent UDF 使的 makefile,根据 fluent 自带的 makefile 修改的。
调用的时候,直接加上目标,如
make -f makefile_linux lnamd64
#----------------------------------------------------------------------#
# makefile for user defined functions.
#----------------------------------------------------------------------#
#----------------------------------------------------------------------#
# User modifiable section.
#----------------------------------------------------------------------#
SRCDIR = ./src
MYSRCS = mymodels.c \
myuns.c \
mybc.c \
SOURCES = $(addprefix $(SRCDIR)/, $(MYSRCS))
HEADERS = $(SRCDIR)/myudf.h
FLUENT_INC = /opt/progs/Fluent.Inc
ARCH = lnamd64
MAKE = make -f makefile_linux
# Precompiled User Object files (for example .o files from .f sources)
USER_OBJECTS=
#----------------------------------------------------------------------#
# Build targets (do not modify below this line).
#----------------------------------------------------------------------#
CC= cc -DRP_CONFIG_3DDP=1
SHELL= /bin/sh
RELEASE= 6.3.26
VERSION= 3ddp
ARCHC=$(ARCH)
TARGET= libhylab.so
UDFDATA= udf_names.c
OBJECTS= $(UDFDATA:.c=.o) $(MYSRCS:.c=.o)
INCLUDES= -I$(FLUENT_INC)/fluent$(RELEASE)/$(ARCH)/$(VERSION) \
-I$(FLUENT_INC)/fluent$(RELEASE)/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/cortex/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/client/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/tgrid/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/multiport/src \
-I.
CFLAGS_ALPHA= -c
相关文档:
“/”根目录
包含基本的操作系统和维护工具。这个目录的文件可以启动系统,并且需要的话,可以完成紧急维护和修复的功能。
“/usr”目录
包含所有的命令、程序库、文档和其它文件。这些文件在正常操作中不会被改变的。
这个目录也包含你的Linux发行版本的主要的应用程序,譬如,Netscape。
&ldquo ......
fopen(打开文件)
相关函数
open,fclose
表头文件
#include<stdio.h>
定义函数
FILE * fopen(const char * path,const char * mode);
函数说明
参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。 ......
acpid
配置文件:/proc/acpi/event
默认端口:无
说明:Advanced Configuration and Power Interface,为替代传统的APM 电源管理标准而推出
的新型电源管理标准。
是否需要启动:如果你需要对电源进行管理,那就需要启动。
anacron
配置文件:/etc/anacron
默认端口:无
说明:一个自动化运行任务。Red Hat Linu ......
Tuning TCP for Linux 2.4 and 2.6
NB: Recent versions of Linux (version 2.6.17 and later) have full autotuning with 4 MB maximum buffer sizes. Except in some rare cases, manual tuning is unlikely to substantially improve the performance of these kernels over most network paths, and is not generally ......