annotate cp2102/Makefile @ 60:ae8075bcc029

cp2102-read-baudtab program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 20:47:52 +0000
parents 4890ded06a8b
children f5db4e03efb2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
60
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
3 PROGS= cp2102-decode-baudtab cp2102-read-baudtab cp2102-read-eeprom \
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
4 cp2102-read-partno
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
5 NOINST= file_rw_test
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 LIBS= ../libuwrap/libuwrap.a
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 INSTALL_PREFIX= /opt/freecalypso
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 INSTBIN=${INSTALL_PREFIX}/bin
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
58
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
12 DECODE_BAUDTAB_OBJS= decode_baudtab.o decode_baudtab_main.o intel_hex_in.o
60
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
13 READ_BAUDTAB_OBJS= decode_baudtab.o read_baudtab.o read_eeprom.o
53
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
14 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
15 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
16
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
17 all: ${PROGS} ${NOINST}
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
58
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
19 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS}
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
20 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS}
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
21
60
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
22 cp2102-read-baudtab: ${READ_BAUDTAB_OBJS} ${LIBS}
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
23 ${CC} ${CFLAGS} -o $@ ${READ_BAUDTAB_OBJS} ${LIBS} -lusb
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
24
53
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
25 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
26 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
27
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 cp2102-read-partno: read_partno.o ${LIBS}
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
31 file_rw_test: ${RW_TEST_OBJS}
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
32 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS}
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
33
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 install:
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 mkdir -p ${INSTBIN}
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 install -c ${PROGS} ${INSTBIN}
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 clean:
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
39 rm -f ${PROGS} ${NOINST} *.o *errs *.out