3 # Makefile.asm - assembly support
5 # Copyright (C) 2004 Samuel Rydh (samuel@ibrium.se)
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
12 #################################################
13 # Rules for asm targets
14 #################################################
16 ASMFLAGS = -D__ASSEMBLY__ -I$(top_srcdir) $(ALTIVEC)
17 FILTERBIN = $(top_srcdir)/scripts/asfilter
18 ASFILTER = $(shell if test -x $(FILTERBIN) ; then echo $(FILTERBIN) \
19 ; else echo "tr ';' '\n'" ; fi)
20 INVOKE_M4 = | $(M4) -s $(M4_NO_GNU) | $(ASFILTER)
23 @printf " Compiling %-20s: " $(notdir $@)
27 @$(CPP) $(ASMFLAGS) $(IDIRS) $< > /dev/null
28 $(CPP) $(ASMFLAGS) $(IDIRS) $(DEPFLAGS) $< $(INVOKE_M4) > $@.s
29 $(AS) $@.s $(AS_FLAGS) -o $@