comparison target-utils/compalstage/Makefile @ 378:3164604a6c70

install compalstage-*.bin and loadagent.srec from target-utils
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 09 Jun 2014 06:10:01 +0000
parents 48c08499cede
children 90af6744d256
comparison
equal deleted inserted replaced
377:d148403013c0 378:3164604a6c70
1 CC= arm-elf-gcc 1 CC= arm-elf-gcc
2 OBJCOPY=arm-elf-objcopy 2 OBJCOPY=arm-elf-objcopy
3 3
4 all: compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin 4 TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin
5 INSTDIR=/usr/local/share/freecalypso
6
7 all: ${TARGETS}
5 8
6 .SUFFIXES: .o .bin 9 .SUFFIXES: .o .bin
7 10
8 .o.bin: 11 .o.bin:
9 ${OBJCOPY} -O binary $< $@ 12 ${OBJCOPY} -O binary $< $@
15 ${CC} -c -o $@ $< 18 ${CC} -c -o $@ $<
16 19
17 compalstage-thumb.o: compalstage.S 20 compalstage-thumb.o: compalstage.S
18 ${CC} -DTHUMB_ENTRY -c -o $@ $< 21 ${CC} -DTHUMB_ENTRY -c -o $@ $<
19 22
23 install:
24 install -c ${TARGETS} ${INSTDIR}
25
20 clean: 26 clean:
21 rm -f *.o *errs *core *.bin 27 rm -f *.o *errs *core *.bin
22 28
23 FRC: 29 FRC: