I have a Makefile wihich produces so many object file – .o – . How can I redirect those to the one directory then create an executable from this directory ?
Makefile format :
x.o = x.hpp x.cpp
g++ -c x.cpp
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.
Well, that seems to be easy:
You need to create the bin directory, but you can also add that to the Makefile easily.
Hope this helps.