annotate loadtools/Makefile @ 227:6616f4e35579

fc-loadtool: exec command now looks for scripts in the current directory
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 03 Aug 2017 01:21:45 +0000
parents 064d4eedb3a6
children 8c011177adb9
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
85
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram fc-buzplay
44
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
4 INSTBIN=/opt/freecalypso/bin
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
5 INSTCONF=/opt/freecalypso/loadtools
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
6 INSTHELP=/opt/freecalypso/helpfiles
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 EXTRA_OBJ= compalload.o
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 COMPALRAM_OBJS= compalload.o compalram.o defpath.o sercomm.o ttypassthru.o
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
84
54a6864cabf4 loadtools: hwparamstubs.c split in preparation for adding fc-buzplay
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
12 IRAM_OBJS= defexitstub.o defpath.o flashstubs.o hexdecode.o hwparam.o \
204
064d4eedb3a6 loadtools: second program invokation support added to fc-iram like in fc-xram
Mychaela Falconia <falcon@freecalypso.org>
parents: 86
diff changeset
13 romload.o secondprog.o sercomm.o sertool.o srecreader.o \
064d4eedb3a6 loadtools: second program invokation support added to fc-iram like in fc-xram
Mychaela Falconia <falcon@freecalypso.org>
parents: 86
diff changeset
14 ttypassthru.o ${EXTRA_OBJ}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 LOADTOOL_OBJS= crc32tab.o defpath.o flashops.o flcmplboot.o flmain.o flmisc.o \
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 flprogbin.o flprogsrec.o flutil.o hexdecode.o hwparam.o \
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 labaud.o ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o \
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
84
54a6864cabf4 loadtools: hwparamstubs.c split in preparation for adding fc-buzplay
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
22 XRAM_OBJS= chainload.o clmain.o defexitstub.o defpath.o flashstubs.o \
204
064d4eedb3a6 loadtools: second program invokation support added to fc-iram like in fc-xram
Mychaela Falconia <falcon@freecalypso.org>
parents: 86
diff changeset
23 hexdecode.o hwparam.o initscript.o labaud.o romload.o \
064d4eedb3a6 loadtools: second program invokation support added to fc-iram like in fc-xram
Mychaela Falconia <falcon@freecalypso.org>
parents: 86
diff changeset
24 secondprog.o sercomm.o srecreader.o tpinterf.o ttypassthru.o \
064d4eedb3a6 loadtools: second program invokation support added to fc-iram like in fc-xram
Mychaela Falconia <falcon@freecalypso.org>
parents: 86
diff changeset
25 ${EXTRA_OBJ}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
86
684eddecbc62 fc-buzplay play command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
27 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \
684eddecbc62 fc-buzplay play command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
28 hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \
684eddecbc62 fc-buzplay play command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
29 sercomm.o srecreader.o tpinterf.o ${EXTRA_OBJ}
85
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
30
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 all: ${PROGS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 fc-compalram: ${COMPALRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 fc-iram: ${IRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 fc-loadtool: ${LOADTOOL_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 fc-xram: ${XRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44
85
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
45 fc-buzplay: ${BUZPLAY_OBJS}
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
46 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS}
c5766d12360d fc-buzplay started
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
47
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 install:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 mkdir -p ${INSTBIN}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50 install -c ${PROGS} ${INSTBIN}
44
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
51 mkdir -p ${INSTCONF}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
52 install -c -m 644 scripts/* ${INSTCONF}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
53 mkdir -p ${INSTHELP}
b77005f6d315 loadtools: migration to /opt/freecalypso
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
54 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
55
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 clean:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
57 rm -f *.o *.out *errs ${PROGS}