📄 makebuild.spec
字号:
# Following must be defined in the environment before you run make:## OS = SOLARIS or LINUX or FREEBSD or HPUX# LIBS = regular (non-thread) libraries (eg, "-lncurses -lutil")# TLIBS = thread libraries (eg, "-llthread -llgcc_r")# PTHREADSTUB = stub for thread functions (eg, pthreadstub.o), if needed# INCLUDES = additional include directory (eg, "-I/usr/local/include/pthread/linuxthreads")# Don't forget:# export OS LIBS TLIBS PTHREADSTUB INCLUDES# Suggestions:# Solaris:# OS=SOLARIS# LIBS="-lrt -lcurses -lsocket -lnsl"# TLIBS="-lpthread"## FreeBSD:# OS=FREEBSD# LIBS="-lncurses -lutil"# TLIBS="-llthread -llgcc_r"# PTHREADSTUB=pthreadstub.o# INCLUDES="-I/usr/local/include/pthread/linuxthreads"## Linux:# OS=LINUX# LIBS="-lncurses -lutil"# TLIBS="-pthread"## HPUX:# OS=HPUX# LIBS="-lcurses"# TLIBS="-lpthread" (not yet checked out)# Options below (e.g., -Wimplicit) are for gcc mostly. You will have to modify them for a non-gcc compiler.!echo CFLAGS = $(INCLUDES) -I$(AUPSRC) -I$(AUPSRC)/include -I$(AUPSRC)/common -I$(AUPSRC)/c6 -Wimplicit -Wstrict-prototypes -Wall -D$(OS) -D_REENTRANT -D_THREAD_SAFE -std=c99!echo CC = gcc!echo CCPP = g++!echo CCLINK = gcc# Same objects are used all the time, sometimes linking in unnecessary files.!echo AUPOBJS = syserr.o time.o extio.o getblksize.o setblock.o ec.o logf.o options.o macrostr.oc1/syserr.cc1/time.cc2/extio.cc2/getblksize.cc4/setblock.ccommon/ec.ccommon/logf.ccommon/options.ccommon/pthreadstub.cmms common/mkmacrostr.c############################################## Utility to build macro-string program#############################################!echo macrostr.o: $(AUPSRC)/common/macrostr.c $(AUPSRC)/common/macrostr.incl!echo $(CC) $(CFLAGS) -c -o macrostr.o $(AUPSRC)/common/macrostr.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -