Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / arch / ppc / Makefile.asm
1 # -*- makefile -*- 
2 #
3 #   Makefile.asm - assembly support
4 #   
5 #   Copyright (C) 2004 Samuel Rydh (samuel@ibrium.se)
6 #   
7 #   This program is free software; you can redistribute it and/or
8 #   modify it under the terms of the GNU General Public License
9 #   version 2
10
11
12 #################################################
13 # Rules for asm targets
14 #################################################
15
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)
21
22 $(ODIR)/%.o: %.S
23         @printf "    Compiling %-20s: " $(notdir $@)
24         assembly=
25         @install -d $(dir $@)
26         @$(RM) $@ $@.s
27         @$(CPP) $(ASMFLAGS) $(IDIRS) $< > /dev/null
28         $(CPP) $(ASMFLAGS) $(IDIRS) $(DEPFLAGS) $< $(INVOKE_M4) > $@.s
29         $(AS) $@.s $(AS_FLAGS) -o $@
30         @$(DEPEXTRA)
31         @$(RM) $@.s
32         @echo "ok"