comparison cp2102/Makefile @ 58:4890ded06a8b

cp2102-decode-baudtab program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 20:33:26 +0000
parents c0084bf153e5
children ae8075bcc029
comparison
equal deleted inserted replaced
57:deba1d5c8024 58:4890ded06a8b
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= cp2102-read-eeprom cp2102-read-partno 3 PROGS= cp2102-decode-baudtab cp2102-read-eeprom cp2102-read-partno
4 NOINST= file_rw_test 4 NOINST= file_rw_test
5 LIBS= ../libuwrap/libuwrap.a 5 LIBS= ../libuwrap/libuwrap.a
6 6
7 INSTALL_PREFIX= /opt/freecalypso 7 INSTALL_PREFIX= /opt/freecalypso
8 8
9 INSTBIN=${INSTALL_PREFIX}/bin 9 INSTBIN=${INSTALL_PREFIX}/bin
10 10
11 DECODE_BAUDTAB_OBJS= decode_baudtab.o decode_baudtab_main.o intel_hex_in.o
11 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o 12 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o
12
13 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o 13 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
14 14
15 all: ${PROGS} ${NOINST} 15 all: ${PROGS} ${NOINST}
16
17 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS}
18 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS}
16 19
17 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS} 20 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
18 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb 21 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
19 22
20 cp2102-read-partno: read_partno.o ${LIBS} 23 cp2102-read-partno: read_partno.o ${LIBS}