• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

Makefile Question

Two simple questions about Makefiles.....

1. How can i put the object file in a directory other than the lovcation of the source file?

2. I list my soruce files like this:
src:= file1.cpp file2.cpp ......

however i have a large project and am using more than 20 files so this one line looks rather ugly. Is htere a neater way to do it than this? Can i at least split the line over several lines?
0
danlarkin
Asked:
danlarkin
1 Solution
 
pixitronCommented:
well you can split over several lines using \
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now