FreeCalypso > hg > freecalypso-tools
annotate loadtools/Makefile @ 993:84c9869a3659
flash PPB erase: make internal API more consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 03 Dec 2023 04:58:50 +0000 |
parents | 511e2b85c115 |
children |
rev | line source |
---|---|
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
790
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram fc-buzplay fc-dspromdump \ |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
4 fc-simint |
473
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
5 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
6 INSTALL_PREFIX= /opt/freecalypso |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
7 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
8 INSTBIN=${INSTALL_PREFIX}/bin |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
9 INSTCONF=${INSTALL_PREFIX}/loadtools |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
250
diff
changeset
|
10 INSTHELP=${INSTALL_PREFIX}/helpfiles |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
250
8c011177adb9
loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
204
diff
changeset
|
12 COMPALRAM_OBJS= compalload.o compalram.o defpath.o ttypassthru.o |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
573
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
14 IRAM_OBJS= compalload.o defexitstub.o defpath.o flashstubs.o hexdecode.o \ |
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
15 hwparam.o romload.o secondprog.o sertool.o srecreader.o \ |
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
16 ttypassthru.o |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
977
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
18 LOADTOOL_OBJS= audump.o compalload.o crc32tab.o defpath.o flamdsec.o flashid.o\ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
19 flashops.o flcmplboot.o flconf.o fldevs.o flerase.o flmain.o \ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
20 flmisc.o flprogbin.o flprogsrec.o flprotreg.o flutil.o \ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
21 hexdecode.o hwparam.o labaud.o lacrc32.o ltdispatch.o ltdump.o \ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
22 ltexit.o lthelp.o ltmain.o ltmisc.o ltpassthru.o ltscript.o \ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
23 romload.o srecreader.o tpinterf.o tpinterf2.o tpinterf3.o \ |
511e2b85c115
fc-loadtool: implement flash lock-state command
Mychaela Falconia <falcon@freecalypso.org>
parents:
895
diff
changeset
|
24 tpinterfb.o |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
656
9f5a3e9e6294
fc-xram: implemented CRC-32 verification
Mychaela Falconia <falcon@freecalypso.org>
parents:
650
diff
changeset
|
26 XRAM_OBJS= chainload.o clmain.o compalload.o crc32tab.o defexitstub.o \ |
9f5a3e9e6294
fc-xram: implemented CRC-32 verification
Mychaela Falconia <falcon@freecalypso.org>
parents:
650
diff
changeset
|
27 defpath.o flashstubs.o hexdecode.o hwparam.o initscript.o \ |
9f5a3e9e6294
fc-xram: implemented CRC-32 verification
Mychaela Falconia <falcon@freecalypso.org>
parents:
650
diff
changeset
|
28 labaud.o lacrc32.o romload.o secondprog.o srecreader.o \ |
9f5a3e9e6294
fc-xram: implemented CRC-32 verification
Mychaela Falconia <falcon@freecalypso.org>
parents:
650
diff
changeset
|
29 tpinterf.o tpinterf2.o tpinterfb.o ttypassthru.o |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 |
895
850b4f066d75
fc-buzplay: unified play command
Mychaela Falconia <falcon@freecalypso.org>
parents:
894
diff
changeset
|
31 BUZPLAY_OBJS= bpdispatch.o bpmain.o bpunify.o buzplaybu.o buzplaypwt.o \ |
850b4f066d75
fc-buzplay: unified play command
Mychaela Falconia <falcon@freecalypso.org>
parents:
894
diff
changeset
|
32 compalload.o defpath.o flashstubs.o hexdecode.o hwparam.o \ |
850b4f066d75
fc-buzplay: unified play command
Mychaela Falconia <falcon@freecalypso.org>
parents:
894
diff
changeset
|
33 labaud.o ltexit.o ltpassthru.o romload.o srecreader.o tpinterf.o |
250
8c011177adb9
loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
204
diff
changeset
|
34 |
573
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
35 ROMDUMP_OBJS= compalload.o defpath.o flashstubs.o hexdecode.o hwparam.o \ |
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
36 labaud.o ltexit.o romdump.o romload.o srecreader.o tpinterf.o \ |
b22cc34b6fc9
loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents:
548
diff
changeset
|
37 tpinterf2.o |
548
2e4ab60919b9
fc-dspromdump front end program implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
38 |
790
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
39 SIMINT_OBJS= compalload.o defexitstub.o defpath.o flashstubs.o hexdecode.o \ |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
40 hwparam.o labaud.o romload.o simatr.o simmain.o simup.o \ |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
41 srecreader.o tpinterf.o tpinterf2.o |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
42 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
43 LIBPWON= ../libpwon/libpwon.a |
250
8c011177adb9
loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
204
diff
changeset
|
44 LIBSERIAL= ../libserial/libserial.a |
85
c5766d12360d
fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents:
84
diff
changeset
|
45 |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 all: ${PROGS} |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 |
250
8c011177adb9
loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
204
diff
changeset
|
48 fc-compalram: ${COMPALRAM_OBJS} ${LIBSERIAL} |
8c011177adb9
loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
204
diff
changeset
|
49 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS} ${LIBSERIAL} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
51 fc-iram: ${IRAM_OBJS} ${LIBPWON} ${LIBSERIAL} |
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
52 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS} ${LIBPWON} ${LIBSERIAL} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
54 fc-loadtool: ${LOADTOOL_OBJS} ${LIBPWON} ${LIBSERIAL} |
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
55 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS} ${LIBPWON} ${LIBSERIAL} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
57 fc-xram: ${XRAM_OBJS} ${LIBPWON} ${LIBSERIAL} |
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
58 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} ${LIBPWON} ${LIBSERIAL} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
60 fc-buzplay: ${BUZPLAY_OBJS} ${LIBPWON} ${LIBSERIAL} |
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
61 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBPWON} ${LIBSERIAL} |
85
c5766d12360d
fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents:
84
diff
changeset
|
62 |
575
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
63 fc-dspromdump: ${ROMDUMP_OBJS} ${LIBPWON} ${LIBSERIAL} |
cef70d53fc5e
loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
573
diff
changeset
|
64 ${CC} ${CFLAGS} -o $@ ${ROMDUMP_OBJS} ${LIBPWON} ${LIBSERIAL} |
548
2e4ab60919b9
fc-dspromdump front end program implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
65 |
790
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
66 fc-simint: ${SIMINT_OBJS} ${LIBPWON} ${LIBSERIAL} |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
67 ${CC} ${CFLAGS} -o $@ ${SIMINT_OBJS} ${LIBPWON} ${LIBSERIAL} |
0bbe0213812d
fc-simint put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
712
diff
changeset
|
68 |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 install: |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 mkdir -p ${INSTBIN} |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 install -c ${PROGS} ${INSTBIN} |
44
b77005f6d315
loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
72 mkdir -p ${INSTCONF} |
b77005f6d315
loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
73 install -c -m 644 scripts/* ${INSTCONF} |
b77005f6d315
loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
74 mkdir -p ${INSTHELP} |
b77005f6d315
loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
75 install -c -m 644 loadtool.help ${INSTHELP} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 clean: |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 rm -f *.o *.out *errs ${PROGS} |