📄 makefile
字号:
include ../Make.defines
DBLIB = libdb.a
DBLIBOBJS = alloc.o checkfree.o close.o delete.o dodelete.o \
fetch.o find.o findfree.o free.o \
hash.o nextrec.o open.o \
readdat.o readidx.o readptr.o rewind.o \
stats.o store.o writedat.o writeidx.o writeptr.o
PROGS = t1 t3 t4
LDLIBS = ${DBLIB} ${LIB}
all: ${DBLIB} ${PROGS}
lib: ${DBLIB}
${DBLIB}: ${DBLIB}(${DBLIBOBJS})
ar rv $@ $?
ranlib $@
# The following way to make a library only appears to work under SunOS.
# Under other systems just do "cc -c -O [a-su-z]*.c" then
# "ar rv libdb.a [a-su-z]*.o".
${DBLIB}(%.o): %.o
@true
#t2: t2.o tellwait.o
# $(LINK.c) -o $@ t2.o tellwait.o $(LDLIBS)
t3: t3.o
${LINK.c} -o $@ t3.o ${LDLIBS}
clean:
rm -f ${DBLIB} ${DBLIBOBJS} ${PROGS} ${TEMPFILES} *.dat *.idx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -