aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorMarcus Comstedt2009-10-10 12:35:20 +0000
committerMarcus Comstedt2009-10-10 12:35:20 +0000
commitb94c17488b48364953142c8c81fc7c07684175b2 (patch)
tree220bb9e6066d518d36238cabd932a4d04e6a07b0 /Makefile.common
parent3e259dea30f02e90b891801b27bdedb44f66a06f (diff)
downloadscummvm-rg350-b94c17488b48364953142c8c81fc7c07684175b2.tar.gz
scummvm-rg350-b94c17488b48364953142c8c81fc7c07684175b2.tar.bz2
scummvm-rg350-b94c17488b48364953142c8c81fc7c07684175b2.zip
Added a rule for assembler with cpp preprocessing.
svn-id: r44871
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index c471acf324..72fe3c7510 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -121,6 +121,10 @@ endif
$(QUIET)$(MKDIR) $(*D)
$(QUIET_AS)$(AS) $(ASFLAGS) $(<) -o $*.o
+%.o: %.S
+ $(QUIET)$(MKDIR) $(*D)/$(DEPDIR)
+ $(QUIET_AS)$(CXX) $(CXX_UPDATE_DEP_FLAG) $(ASFLAGS) -c $(<) -o $*.o
+
ifdef HAVE_NASM
%.o: %.asm
$(QUIET)$(MKDIR) $(*D)