annotate cp2102/Makefile @ 100:29bff463402e

doc/CP2102-EEPROM-format: part number byte confirmed
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 28 Sep 2023 05:39:44 +0000
parents c59011177e2e
children
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
92
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
3 PROGS= cp2102-decode-baudtab cp2102-decode-ee-desc cp2102-patch-ee-image \
96
c6d04771bf6a cp2102-write-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 92
diff changeset
4 cp2102-read-baudtab cp2102-read-eeprom cp2102-read-partno \
99
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
5 cp2102-update-eeprom cp2102-write-eeprom
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
6 NOINST= file_rw_test
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 LIBS= ../libuwrap/libuwrap.a
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
62
f5db4e03efb2 cp2102/Makefile: install baudtab files
Mychaela Falconia <falcon@freecalypso.org>
parents: 60
diff changeset
9 INST_FILES= baudtab-gsm baudtab-std
f5db4e03efb2 cp2102/Makefile: install baudtab files
Mychaela Falconia <falcon@freecalypso.org>
parents: 60
diff changeset
10
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 INSTALL_PREFIX= /opt/freecalypso
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 INSTBIN=${INSTALL_PREFIX}/bin
62
f5db4e03efb2 cp2102/Makefile: install baudtab files
Mychaela Falconia <falcon@freecalypso.org>
parents: 60
diff changeset
14 INSTDAT=${INSTALL_PREFIX}/cp2102
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
58
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
16 DECODE_BAUDTAB_OBJS= decode_baudtab.o decode_baudtab_main.o intel_hex_in.o
85
0787525a33e2 cp2102-decode-ee-desc program started
Mychaela Falconia <falcon@freecalypso.org>
parents: 62
diff changeset
17 DECODE_EEDESC_OBJS= decode_usb_desc.o intel_hex_in.o
92
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
18 PATCH_FILE_OBJS= apply_eeprom_patch.o intel_hex_in.o intel_hex_out.o \
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
19 patch_ee_file.o
97
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
20 READ_BAUDTAB_OBJS= decode_baudtab.o find_dev.o read_baudtab.o read_eeprom.o
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
21 READ_EEPROM_OBJS= find_dev.o intel_hex_out.o read_eeprom.o \
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
22 read_eeprom_main.o
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
23 READ_PARTNO_OBJS= find_dev.o read_partno.o
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
24 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
99
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
25 UPDATE_EEPROM_OBJS= apply_eeprom_patch.o find_dev.o read_eeprom.o \
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
26 update_eeprom.o write_eeprom.o
97
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
27 WRITE_EEPROM_OBJS= find_dev.o intel_hex_in.o write_eeprom.o \
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
28 write_eeprom_main.o
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
29
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
30 all: ${PROGS} ${NOINST}
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31
58
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
32 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS}
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
33 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS}
4890ded06a8b cp2102-decode-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 55
diff changeset
34
85
0787525a33e2 cp2102-decode-ee-desc program started
Mychaela Falconia <falcon@freecalypso.org>
parents: 62
diff changeset
35 cp2102-decode-ee-desc: ${DECODE_EEDESC_OBJS}
0787525a33e2 cp2102-decode-ee-desc program started
Mychaela Falconia <falcon@freecalypso.org>
parents: 62
diff changeset
36 ${CC} ${CFLAGS} -o $@ ${DECODE_EEDESC_OBJS}
0787525a33e2 cp2102-decode-ee-desc program started
Mychaela Falconia <falcon@freecalypso.org>
parents: 62
diff changeset
37
92
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
38 cp2102-patch-ee-image: ${PATCH_FILE_OBJS}
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
39 ${CC} ${CFLAGS} -o $@ ${PATCH_FILE_OBJS}
915a6fa7723e cp2102-patch-ee-image program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
40
60
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
41 cp2102-read-baudtab: ${READ_BAUDTAB_OBJS} ${LIBS}
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
42 ${CC} ${CFLAGS} -o $@ ${READ_BAUDTAB_OBJS} ${LIBS} -lusb
ae8075bcc029 cp2102-read-baudtab program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 58
diff changeset
43
53
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
44 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
45 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
d4d3531d342a cp2102-read-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 50
diff changeset
46
97
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
47 cp2102-read-partno: ${READ_PARTNO_OBJS} ${LIBS}
8d35346f1d46 cp2102 tools: accept "default" as device-selector
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
48 ${CC} ${CFLAGS} -o $@ ${READ_PARTNO_OBJS} ${LIBS} -lusb
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49
99
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
50 cp2102-update-eeprom: ${UPDATE_EEPROM_OBJS} ${LIBS}
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
51 ${CC} ${CFLAGS} -o $@ ${UPDATE_EEPROM_OBJS} ${LIBS} -lusb
c59011177e2e cp2102-update-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 97
diff changeset
52
96
c6d04771bf6a cp2102-write-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 92
diff changeset
53 cp2102-write-eeprom: ${WRITE_EEPROM_OBJS} ${LIBS}
c6d04771bf6a cp2102-write-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 92
diff changeset
54 ${CC} ${CFLAGS} -o $@ ${WRITE_EEPROM_OBJS} ${LIBS} -lusb
c6d04771bf6a cp2102-write-eeprom program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 92
diff changeset
55
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
56 file_rw_test: ${RW_TEST_OBJS}
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
57 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS}
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
58
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
59 install:
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60 mkdir -p ${INSTBIN}
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 install -c ${PROGS} ${INSTBIN}
62
f5db4e03efb2 cp2102/Makefile: install baudtab files
Mychaela Falconia <falcon@freecalypso.org>
parents: 60
diff changeset
62 mkdir -p ${INSTDAT}
f5db4e03efb2 cp2102/Makefile: install baudtab files
Mychaela Falconia <falcon@freecalypso.org>
parents: 60
diff changeset
63 install -c -m 644 ${INST_FILES} ${INSTDAT}
50
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64
a5c4a82d01ab cp2102-read-partno program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 clean:
55
c0084bf153e5 cp2102: Intel HEX reading implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 53
diff changeset
66 rm -f ${PROGS} ${NOINST} *.o *errs *.out