[Scummvm-cvs-logs] SF.net SVN: scummvm:[45982] scummvm/trunk/Makefile.common

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Nov 19 00:34:41 CET 2009


Revision: 45982
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45982&view=rev
Author:   fingolfin
Date:     2009-11-18 23:34:40 +0000 (Wed, 18 Nov 2009)

Log Message:
-----------
Some comments

Modified Paths:
--------------
    scummvm/trunk/Makefile.common

Modified: scummvm/trunk/Makefile.common
===================================================================
--- scummvm/trunk/Makefile.common	2009-11-18 23:12:52 UTC (rev 45981)
+++ scummvm/trunk/Makefile.common	2009-11-18 23:34:40 UTC (rev 45982)
@@ -116,16 +116,18 @@
 
 endif
 
-
+# Build rule for assembler files
 %.o: %.s
 	$(QUIET)$(MKDIR) $(*D)
 	$(QUIET_AS)$(AS) $(ASFLAGS) $(<) -o $*.o
 
+# Build rule for assembler files with preprocessing
 %.o: %.S
 	$(QUIET)$(MKDIR) $(*D)/$(DEPDIR)
 	$(QUIET_AS)$(CXX) $(CXX_UPDATE_DEP_FLAG) $(ASFLAGS) -c $(<) -o $*.o
 
 ifdef HAVE_NASM
+# Build rule for NASM assembler filesss
 %.o: %.asm
 	$(QUIET)$(MKDIR) $(*D)
 	$(QUIET_NASM)$(NASM) -O1 $(NASMFLAGS) -g -o $*.o $(<)
@@ -134,6 +136,9 @@
 # Include the dependency tracking files.
 -include $(wildcard $(addsuffix /*.d,$(DEPDIRS)))
 
+# Mark *.d files and most *.mk files as PHONY. This stops make from trying to
+# recreate them (which it can't), and in particular from looking for potential
+# source files. This can save quite a bit of disk access time.
 .PHONY: $(wildcard $(addsuffix /*.d,$(DEPDIRS))) $(addprefix $(srcdir)/, $(addsuffix /module.mk,$(MODULES))) \
 	$(srcdir)/$(port_mk) $(srcdir)/rules.mk $(srcdir)/engines/engines.mk
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list