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_ ......
Õâ¸ö¶«¶«£¬ÂùºÃÍæµÄ¡£Æäʵ¾ÍÊǶÁÈ¡ÁË/proc/net/dev Îļþ¡£
struct netdev_stats {
unsigned long long rx_packets_m; /* total packets received */
unsigned long long tx_packets_m; &nbs ......
Linuxϳ£ÓÃѹËõ¸ñʽµÄѹËõÓë½âѹ·½·¨
½â°ü£ºtar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
---------------------------------------------
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar.gz
½âѹ£ºtar zxvf FileName.tar. ......
“/”¸ùĿ¼
°üº¬»ù±¾µÄ²Ù×÷ϵͳºÍά»¤¹¤¾ß¡£Õâ¸öĿ¼µÄÎļþ¿ÉÒÔÆô¶¯ÏµÍ³£¬²¢ÇÒÐèÒªµÄ»°£¬¿ÉÒÔÍê³É½ô¼±Î¬»¤ºÍÐÞ¸´µÄ¹¦ÄÜ¡£
“/usr”Ŀ¼
°üº¬ËùÓеÄÃüÁî¡¢³ÌÐò¿â¡¢ÎĵµºÍÆäËüÎļþ¡£ÕâЩÎļþÔÚÕý³£²Ù×÷Öв»»á±»¸Ä±äµÄ¡£
Õâ¸öĿ¼Ҳ°üº¬ÄãµÄLinux·¢Ðа汾µÄÖ÷ÒªµÄÓ¦ÓóÌÐò£¬Æ©È磬Netscape¡£
&ldquo ......
ÔÚLinuxÖУ¬²»ÓüüÈëÓ¦ÓóÌÐòµÄÍêÕû·¾¶¶øÆô¶¯Ó¦ÓóÌÐòµÄ·½·¨£º
ÔÒò£º
Ö®ËùÒÔҪʹÓÃÍêÕû·¾¶ÃûÀ´Æô¶¯³ÌÐòÊÇÓÉÓÚ£¬¿ÉÖ´ÐÐÎļþûÓб»·ÅÖÃÔÚÄãµÄÓû§ shell »·¾³ËùÖªµÄĿ¼ÖУ¨Èç /usr/local/bin £©¡£
·½·¨£º±à¼PATH±äÁ¿
Èç¹ûÄãÐèҪƵ·±µØÆô¶¯Î»ÓÚ shell ËÑË÷µÄ·¾¶Ö®ÍâµÄ³ÌÐò£ ......