📄 makefile
字号:
# Do not edit this makefile. It was generated automatically # with commands like## $ AUPSRC=/aup # (for example)# $ export AUPSRC# $ awk -f $AUPSRC/makebuild.awk $AUPSRC/c1/makebuild.spec >$AUPSRC/c1/Makefile## It is incomplete in the sense that there are no header-file# dependencies.## Use the shell-procedure makebuild to run awk. Then compile# with a shell-procedure like this one for Linux:## AUPSRC=/aup # (for example)# OS=LINUX# LIBS="-lncurses -lutil"# TLIBS=-pthread# export OS LIBS TLIBS# make $2 -f $AUPSRC/$1/Makefile $3#defaulttarget: all# Following must be defined in the environment before you run make:## OS = SOLARIS or LINUX or FREEBSD# 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"CFLAGS = $(INCLUDES) -I$(AUPSRC)/include -I$(AUPSRC)/common -I$(AUPSRC)/c6 -Wimplicit -Wstrict-prototypes -Wall -D$(OS) -D_REENTRANT -D_THREAD_SAFECC = gcc# Same objects are used all the time, sometimes linking in unnecessary files.AUPOBJS = syserr.o time.o extio.o getblksize.o setblock.o ec.o logf.o options.o macrostr.omms: mkmacrostr.o $(AUPOBJS) $(PTHREADSTUB) $(CC) -o mms mkmacrostr.o $(AUPOBJS) $(LIBS) $(PTHREADSTUB)############################################## Utility to build macro-string program#############################################macrostr.o: $(AUPSRC)/common/macrostr.c $(AUPSRC)/common/macrostr.incl $(CC) $(CFLAGS) -c -o $*.o $(AUPSRC)/common/macrostr.cmkmacrostr.o: /aup/common/mkmacrostr.c $(CC) $(CFLAGS) -c -o mkmacrostr.o /aup/common/mkmacrostr.coptions.o: /aup/common/options.c $(CC) $(CFLAGS) -c -o options.o /aup/common/options.cpthreadstub.o: /aup/common/pthreadstub.c $(CC) $(CFLAGS) -c -o pthreadstub.o /aup/common/pthreadstub.cec.o: /aup/common/ec.c $(CC) $(CFLAGS) -c -o ec.o /aup/common/ec.clogf.o: /aup/common/logf.c $(CC) $(CFLAGS) -c -o logf.o /aup/common/logf.csetblock.o: /aup/c4/setblock.c $(CC) $(CFLAGS) -c -o setblock.o /aup/c4/setblock.cextio.o: /aup/c2/extio.c $(CC) $(CFLAGS) -c -o extio.o /aup/c2/extio.csyserr.o: /aup/c1/syserr.c $(CC) $(CFLAGS) -c -o syserr.o /aup/c1/syserr.ctime.o: /aup/c1/time.c $(CC) $(CFLAGS) -c -o time.o /aup/c1/time.cgetblksize.o: /aup/c2/getblksize.c $(CC) $(CFLAGS) -c -o getblksize.o /aup/c2/getblksize.csyncio: syncio.o $(AUPOBJS) $(PTHREADSTUB) $(CC) -o syncio syncio.o $(AUPOBJS) $(LIBS) $(PTHREADSTUB)trunc: trunc.o $(AUPOBJS) $(PTHREADSTUB) $(CC) -o trunc trunc.o $(AUPOBJS) $(LIBS) $(PTHREADSTUB)writev: writev.o $(AUPOBJS) $(PTHREADSTUB) $(CC) -o writev writev.o $(AUPOBJS) $(LIBS) $(PTHREADSTUB)x2: x2.o bufio.o $(AUPOBJS) $(PTHREADSTUB) $(CC) -o x2 x2.o bufio.o $(AUPOBJS) $(LIBS) $(PTHREADSTUB)syncio.o: /aup/c2/syncio.c $(CC) $(CFLAGS) -c -o syncio.o /aup/c2/syncio.cx2.o: /aup/c2/x2.c $(CC) $(CFLAGS) -c -o x2.o /aup/c2/x2.ctrunc.o: /aup/c2/trunc.c $(CC) $(CFLAGS) -c -o trunc.o /aup/c2/trunc.cbufio.o: /aup/c2/bufio.c $(CC) $(CFLAGS) -c -o bufio.o /aup/c2/bufio.cwritev.o: /aup/c2/writev.c $(CC) $(CFLAGS) -c -o writev.o /aup/c2/writev.call: x2 writev trunc syncioclean: rm x2 writev trunc syncio *.o
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -