summaryrefslogtreecommitdiffstats
path: root/src/target_dsp
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-09-30 23:12:06 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-11-07 21:39:38 +0100
commit5aabab4861a5f8edbbeef95fd0005b616ce44062 (patch)
tree3ee5b0266e60a25e84abc8465a3b6943ce9a47f0 /src/target_dsp
parent4a00ee10a3df75a216329080634191ba525d3c32 (diff)
target_dsp/calypso: Makefile rework
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target_dsp')
-rw-r--r--src/target_dsp/calypso/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/target_dsp/calypso/Makefile b/src/target_dsp/calypso/Makefile
index ff21e694..40ee4ec5 100644
--- a/src/target_dsp/calypso/Makefile
+++ b/src/target_dsp/calypso/Makefile
@@ -1,7 +1,15 @@
-dsp_dump.bin: bl_stage3.S dsp_dump.lds
- c54x-coff-as bl_stage3.S -o bl_stage3.o
- c54x-coff-ld --script dsp_dump.lds bl_stage3.o -o dsp_dump.coff
- c54x-coff-objcopy -j .text -O binary dsp_dump.coff dsp_dump.bin
+all: dsp_dump.bin
+
+CROSS=tic54x-coff-
+
+%.o: %.S
+ $(CROSS)as $< -o $@
+
+%.bin: %.coff
+ $(CROSS)objcopy -j .text -O binary $< $@
+
+dsp_dump.coff: bl_stage3.o dsp_dump.lds
+ $(CROSS)ld --script dsp_dump.lds bl_stage3.o -o $@
clean:
rm -f *.o *.bin *.coff