Differences between version 69 and revision by previous author of MakefileHowto.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 69 | Last edited on Wednesday, October 28, 2009 10:35:51 am | by PerryLorier | Revert |
Older page: | version 68 | Last edited on Wednesday, October 28, 2009 7:46:47 am | by AlexLobster | Revert |
@@ -267,9 +267,9 @@
----
!!Automatic dependency calculation
-Based on manuals, [term papers | http://www.midterm.us] and [research papers | http://www.customwritings.com], if
you are creating a Makefile for C/C++ gcc can calculate dependency information for you. The quickest way to get this going is to add the -MD flag to your CFLAGS first. You will then need to know the names of the .d files in your makefile. I do something like this:
+If
you are creating a Makefile for C/C++ gcc can calculate dependency information for you. The quickest way to get this going is to add the -MD flag to your CFLAGS first. You will then need to know the names of the .d files in your makefile. I do something like this:
<verbatim>
DEPS := $(patsubst %.o,%.d,$(OBJS))
</verbatim>