annotate loadtools/Makefile @ 653:2d5d1ca58b2a

CHANGES: fc-xram binary protocol
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 02 Mar 2020 21:28:34 +0000
parents bf840c984113
children 9f5a3e9e6294
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
548
2e4ab60919b9 fc-dspromdump front end program implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 506
diff changeset
3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram fc-buzplay fc-dspromdump
473
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
4
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
5 INSTALL_PREFIX= /opt/freecalypso
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
6
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
7 INSTBIN=${INSTALL_PREFIX}/bin
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
8 INSTCONF=${INSTALL_PREFIX}/loadtools
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
9 INSTHELP=${INSTALL_PREFIX}/helpfiles
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
250
8c011177adb9 loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 204
diff changeset
11 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
12
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
13 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
14 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
15 ttypassthru.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
17 LOADTOOL_OBJS= compalload.o crc32tab.o defpath.o flashid.o flashops.o \
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
18 flcmplboot.o flconf.o fldevs.o flmain.o flmisc.o flprogbin.o \
640
5385aca4d813 fc-loadtool module refactoring: CRC-32 functions split out
Mychaela Falconia <falcon@freecalypso.org>
parents: 575
diff changeset
19 flprogsrec.o flutil.o hexdecode.o hwparam.o labaud.o lacrc32.o \
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
20 ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o ltmisc.o \
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
21 ltpassthru.o ltscript.o romload.o srecreader.o tpinterf.o \
649
141372e0d28f fc-loadtool module refactoring: tpinterfb.c split out
Mychaela Falconia <falcon@freecalypso.org>
parents: 640
diff changeset
22 tpinterf2.o tpinterf3.o tpinterfb.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
24 XRAM_OBJS= chainload.o clmain.o compalload.o defexitstub.o defpath.o \
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
25 flashstubs.o hexdecode.o hwparam.o initscript.o labaud.o \
650
bf840c984113 fc-xram reworked to use the new binary protocol
Mychaela Falconia <falcon@freecalypso.org>
parents: 649
diff changeset
26 romload.o secondprog.o srecreader.o tpinterf.o tpinterfb.o \
bf840c984113 fc-xram reworked to use the new binary protocol
Mychaela Falconia <falcon@freecalypso.org>
parents: 649
diff changeset
27 ttypassthru.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
29 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o compalload.o defpath.o \
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
30 flashstubs.o hexdecode.o hwparam.o labaud.o ltexit.o \
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
31 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
32
573
b22cc34b6fc9 loadtools/Makefile: removed provisions for special GTA02 AP build
Mychaela Falconia <falcon@freecalypso.org>
parents: 548
diff changeset
33 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
34 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
35 tpinterf2.o
548
2e4ab60919b9 fc-dspromdump front end program implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 506
diff changeset
36
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
37 LIBPWON= ../libpwon/libpwon.a
250
8c011177adb9 loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 204
diff changeset
38 LIBSERIAL= ../libserial/libserial.a
85
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
39
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 all: ${PROGS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41
250
8c011177adb9 loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 204
diff changeset
42 fc-compalram: ${COMPALRAM_OBJS} ${LIBSERIAL}
8c011177adb9 loadtools reworked to use factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 204
diff changeset
43 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS} ${LIBSERIAL}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
45 fc-iram: ${IRAM_OBJS} ${LIBPWON} ${LIBSERIAL}
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
46 ${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
47
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
48 fc-loadtool: ${LOADTOOL_OBJS} ${LIBPWON} ${LIBSERIAL}
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
49 ${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
50
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
51 fc-xram: ${XRAM_OBJS} ${LIBPWON} ${LIBSERIAL}
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
52 ${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
53
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
54 fc-buzplay: ${BUZPLAY_OBJS} ${LIBPWON} ${LIBSERIAL}
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
55 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBPWON} ${LIBSERIAL}
85
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
56
575
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
57 fc-dspromdump: ${ROMDUMP_OBJS} ${LIBPWON} ${LIBSERIAL}
cef70d53fc5e loadtools: new -P boot control mechanism implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 573
diff changeset
58 ${CC} ${CFLAGS} -o $@ ${ROMDUMP_OBJS} ${LIBPWON} ${LIBSERIAL}
548
2e4ab60919b9 fc-dspromdump front end program implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 506
diff changeset
59
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60 install:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 mkdir -p ${INSTBIN}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62 install -c ${PROGS} ${INSTBIN}
44
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
63 mkdir -p ${INSTCONF}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
64 install -c -m 644 scripts/* ${INSTCONF}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
65 mkdir -p ${INSTHELP}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
66 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
67
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68 clean:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 rm -f *.o *.out *errs ${PROGS}