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
相关文档:
1.时间表示
在程序当中,我们经常要输出系统当前的时间,比如我们使用date命令的输出结果。这个时候我们可以使用下面两个函数
time_t time(time_t *tloc); //时间精度为秒
char *ctime(const time_ ......
Displaying the Routing Table:
netstat -nr
Displaying Interface Statistics:
netstat -i
Show the address resolution (ARP) tables:
netstat -p
Displaying Connections:
netstat -ta (linux)
netstat -a -f af:inet (opensolaris)
http://www.faqs.org/docs/linux_network/x-087-2-iface.netstat.html
http ......
Linux下的设备驱动程序被组织为一组完成不同任务的函数的集合,通过这些函数使得Windows的设备操作犹如文件一般。在应用程序看来,硬件设备只是一个设备文件,应用程序可以象操作普通文件一样对硬件设备进行操作,如open ()、close ()、read ()、write () 等。
Linux主要将设备分为二类:字符设备和块设备。字符设备是指设 ......
fopen(打开文件)
相关函数
open,fclose
表头文件
#include<stdio.h>
定义函数
FILE * fopen(const char * path,const char * mode);
函数说明
参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。 ......
标签:
it
分类:
linux_kernel
作者:Sam (甄峰) sam_code@hotmail.com
Sam之前看2.4
kernel时,常看到List.也仔细看了一下,但现在长期没有看kernel,没有写程序,已经忘记了很多。今天又看一看并记录下来。
Linux
Kernel中,常常需要使用双向链表。在~/include/linux/list.h中,就定义了双向链表和常用的func ......