comparison 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
comparison
equal deleted inserted replaced
59:672c7adc8bc9 60:ae8075bcc029
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= cp2102-decode-baudtab cp2102-read-eeprom cp2102-read-partno 3 PROGS= cp2102-decode-baudtab cp2102-read-baudtab cp2102-read-eeprom \
4 cp2102-read-partno
4 NOINST= file_rw_test 5 NOINST= file_rw_test
5 LIBS= ../libuwrap/libuwrap.a 6 LIBS= ../libuwrap/libuwrap.a
6 7
7 INSTALL_PREFIX= /opt/freecalypso 8 INSTALL_PREFIX= /opt/freecalypso
8 9
9 INSTBIN=${INSTALL_PREFIX}/bin 10 INSTBIN=${INSTALL_PREFIX}/bin
10 11
11 DECODE_BAUDTAB_OBJS= decode_baudtab.o decode_baudtab_main.o intel_hex_in.o 12 DECODE_BAUDTAB_OBJS= decode_baudtab.o decode_baudtab_main.o intel_hex_in.o
13 READ_BAUDTAB_OBJS= decode_baudtab.o read_baudtab.o read_eeprom.o
12 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o 14 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o
13 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o 15 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
14 16
15 all: ${PROGS} ${NOINST} 17 all: ${PROGS} ${NOINST}
16 18
17 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS} 19 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS}
18 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS} 20 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS}
21
22 cp2102-read-baudtab: ${READ_BAUDTAB_OBJS} ${LIBS}
23 ${CC} ${CFLAGS} -o $@ ${READ_BAUDTAB_OBJS} ${LIBS} -lusb
19 24
20 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS} 25 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
21 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb 26 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
22 27
23 cp2102-read-partno: read_partno.o ${LIBS} 28 cp2102-read-partno: read_partno.o ${LIBS}