|
|
1.1 root 1: # -*- makefile -*-
2: #
3: # Makefile.asm - assembly support
4: #
5: # Copyright (C) 2004 Samuel Rydh ([email protected])
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) $@ [email protected]
27: @$(CPP) $(ASMFLAGS) $(IDIRS) $< > /dev/null
28: $(CPP) $(ASMFLAGS) $(IDIRS) $(DEPFLAGS) $< $(INVOKE_M4) > [email protected]
29: $(AS) [email protected] $(AS_FLAGS) -o $@
30: @$(DEPEXTRA)
31: @$(RM) [email protected]
32: @echo "ok"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.