FreeCalypso > hg > freecalypso-sw
annotate target-utils/compalstage/Makefile @ 573:976aeaa2e6e1
gsm-fw/L1/include/l1_pwmgr.h: L1_PWMGR_APP_OFFSET definition needed
for l1_trace.c to compile
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 11 Aug 2014 01:46:50 +0000 |
parents | 90af6744d256 |
children |
rev | line source |
---|---|
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 CC= arm-elf-gcc |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 OBJCOPY=arm-elf-objcopy |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
4 TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
5 INSTDIR=/usr/local/share/freecalypso |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
6 |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
7 all: ${TARGETS} |
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 .SUFFIXES: .o .bin |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 .o.bin: |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 ${OBJCOPY} -O binary $< $@ |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 compalstage-1003.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 ${CC} -DPAD_TO_1003 -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 compalstage-plain.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 ${CC} -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 compalstage-thumb.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 ${CC} -DTHUMB_ENTRY -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
23 install: |
386
90af6744d256
make install in target-utils: do mkdir -p before the install command
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
378
diff
changeset
|
24 mkdir -p ${INSTDIR} |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
25 install -c ${TARGETS} ${INSTDIR} |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
26 |
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 clean: |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 rm -f *.o *errs *core *.bin |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 FRC: |