Add rule for compiling to asm

This allows commands of the form "make foo.s", which is useful
for inspecting the compiler output for debugging purposes.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Mans Rullgard 2011-03-04 19:41:33 +00:00 committed by Michael Niedermayer
parent e40cde01dc
commit 22aebf1bfe
2 changed files with 4 additions and 1 deletions

View file

@ -47,6 +47,9 @@ COMPILE_S = $(call COMPILE,AS)
%.o: %.cpp
$(COMPILE_CXX)
%.s: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -S -o $@ $<
%.o: %.S
$(COMPILE_S)