开发者

GNU make question

AR  = ar
LIBMISC = libapue_db.a
COMM_OBJ   = db.o
RANLIB     = ranlib

all: ${LIBMISC} libapue_db.so.1 t4

libapue_db.a:   ${COMM_OBJ}
        ${AR} rv ${LIBMISC} ${COMM_OBJ}
        $开发者_C百科{RANLIB} ${LIBMISC}

What does ar rv mean? I just know ar is a command and rv is an option. What is ranlib? thank u.


FWIW, I recommend checking man pages first for this sort of information.

ranlib is a program that builds the index in a static library archive. The line with ${AR} says add to ${LIBMISC} all of the objects that ${COMM_OBJ} expands to, replacing (r) any existing objects with that name. The v option asks for verbose output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜