开发者

GNU make question

开发者 https://www.devze.com 2023-02-22 11:41 出处:网络
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  = 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

精彩评论

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