comparison cp2102/Makefile @ 99:c59011177e2e

cp2102-update-eeprom program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 28 Sep 2023 05:25:39 +0000
parents 8d35346f1d46
children
comparison
equal deleted inserted replaced
98:1cacc1ae56f0 99:c59011177e2e
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= cp2102-decode-baudtab cp2102-decode-ee-desc cp2102-patch-ee-image \ 3 PROGS= cp2102-decode-baudtab cp2102-decode-ee-desc cp2102-patch-ee-image \
4 cp2102-read-baudtab cp2102-read-eeprom cp2102-read-partno \ 4 cp2102-read-baudtab cp2102-read-eeprom cp2102-read-partno \
5 cp2102-write-eeprom 5 cp2102-update-eeprom cp2102-write-eeprom
6 NOINST= file_rw_test 6 NOINST= file_rw_test
7 LIBS= ../libuwrap/libuwrap.a 7 LIBS= ../libuwrap/libuwrap.a
8 8
9 INST_FILES= baudtab-gsm baudtab-std 9 INST_FILES= baudtab-gsm baudtab-std
10 10
20 READ_BAUDTAB_OBJS= decode_baudtab.o find_dev.o read_baudtab.o read_eeprom.o 20 READ_BAUDTAB_OBJS= decode_baudtab.o find_dev.o read_baudtab.o read_eeprom.o
21 READ_EEPROM_OBJS= find_dev.o intel_hex_out.o read_eeprom.o \ 21 READ_EEPROM_OBJS= find_dev.o intel_hex_out.o read_eeprom.o \
22 read_eeprom_main.o 22 read_eeprom_main.o
23 READ_PARTNO_OBJS= find_dev.o read_partno.o 23 READ_PARTNO_OBJS= find_dev.o read_partno.o
24 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o 24 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
25 UPDATE_EEPROM_OBJS= apply_eeprom_patch.o find_dev.o read_eeprom.o \
26 update_eeprom.o write_eeprom.o
25 WRITE_EEPROM_OBJS= find_dev.o intel_hex_in.o write_eeprom.o \ 27 WRITE_EEPROM_OBJS= find_dev.o intel_hex_in.o write_eeprom.o \
26 write_eeprom_main.o 28 write_eeprom_main.o
27 29
28 all: ${PROGS} ${NOINST} 30 all: ${PROGS} ${NOINST}
29 31
43 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb 45 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
44 46
45 cp2102-read-partno: ${READ_PARTNO_OBJS} ${LIBS} 47 cp2102-read-partno: ${READ_PARTNO_OBJS} ${LIBS}
46 ${CC} ${CFLAGS} -o $@ ${READ_PARTNO_OBJS} ${LIBS} -lusb 48 ${CC} ${CFLAGS} -o $@ ${READ_PARTNO_OBJS} ${LIBS} -lusb
47 49
50 cp2102-update-eeprom: ${UPDATE_EEPROM_OBJS} ${LIBS}
51 ${CC} ${CFLAGS} -o $@ ${UPDATE_EEPROM_OBJS} ${LIBS} -lusb
52
48 cp2102-write-eeprom: ${WRITE_EEPROM_OBJS} ${LIBS} 53 cp2102-write-eeprom: ${WRITE_EEPROM_OBJS} ${LIBS}
49 ${CC} ${CFLAGS} -o $@ ${WRITE_EEPROM_OBJS} ${LIBS} -lusb 54 ${CC} ${CFLAGS} -o $@ ${WRITE_EEPROM_OBJS} ${LIBS} -lusb
50 55
51 file_rw_test: ${RW_TEST_OBJS} 56 file_rw_test: ${RW_TEST_OBJS}
52 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS} 57 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS}