Is there a way to set where autoconf generates the object files. I would like to have autoconf create all object files in a src/build/ instead of src/
I’ve tried setting VPATH but that doesn’t seem to do anything.
VPATH = build
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.
You do this by running
configurefrom the directory where you want the object files. For instance, ifconfigureand all your code is in a directory namedsrc, then starting from that directory, these commands should do what you want:If you’re not using Automake, you have to write your Makefile.in to handle this case; there are instructions for that in the autoconf manual.