makefile

来自「apue第二版每一章节的c语言源码」· 代码 · 共 36 行

TXT
36
字号
include ../Make.definesDBLIB = libdb.aDBLIBOBJS =	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.oPROGS =	t1 t3 t4LDLIBS = ${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 + =
减小字号Ctrl + -
显示快捷键?