aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorMax Horn2009-11-18 23:34:40 +0000
committerMax Horn2009-11-18 23:34:40 +0000
commit6f45f68a0f255bf89b2dbea69064915e37e29dc4 (patch)
tree56d5c1c4e54fda94ecfb42c71c5f15cb1b6a62ff /Makefile.common
parent5e56184616d6ab0f971b0e84bb62756219ae786c (diff)
downloadscummvm-rg350-6f45f68a0f255bf89b2dbea69064915e37e29dc4.tar.gz
scummvm-rg350-6f45f68a0f255bf89b2dbea69064915e37e29dc4.tar.bz2
scummvm-rg350-6f45f68a0f255bf89b2dbea69064915e37e29dc4.zip
Some comments
svn-id: r45982
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index 57bdd4e62e..5b8cca0804 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -116,16 +116,18 @@ else
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 @@ endif
# 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