I wanted to know what these flags mean in a makefile
-rpath -soname -cvq -MD 2> and some code here
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this is not at all related to
makebut rather togcc/ld.makeis a meta-language, that allows you to automate build-processes.so most things you find within a makefile, usually refer to how you call compilers and linkers and other programs needed to build an application (or a library, or something else).
check the manpages (
man gccandman ld) to get information about specific flags for a given program.e.g.
-rpath DIR: add DIR to runtime search path (ld)-soname FILENAME: set shared library name (ld)-cvq: i have no idea to program which these flags refer; most likely these are three flags-c -v -q, but who knows?-MD: usually used to generate include-dependencies from a .c file (gcc)2>: this is no flag at all, but redirects stderr to somewhere else (e.g. to a file)