Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a basic questions as to if some Makefile includes a Makefile.inc. Generally what commands/configurations/rules go into the Makefile.inc ?

Any pointers would be useful.

thank you.

-AD

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It depends. I've seen a makefile include <system>.inc files for system specific settings. Before you compile, you need to make sure that the correct .inc is used for the system that you are on.

It is also common to have project settings in .inc files, when there are multiple sub-makefiles for a project (one per directory).

It is also used to share common makefile code across different projects.

share|improve this answer
add comment

This depends on the programmer who wrote this make file.

Normally, a Makefile.inc file contains a common set of definitions and macros that are used across more than one installation. This way, they are more easily and centrally maintained.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.