FreeCalypso > hg > fc-usbser-tools
comparison cp2102/Makefile @ 96:c6d04771bf6a
cp2102-write-eeprom program written, compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 28 Sep 2023 02:38:59 +0000 |
parents | 915a6fa7723e |
children | 8d35346f1d46 |
comparison
equal
deleted
inserted
replaced
95:a378bf95c26c | 96:c6d04771bf6a |
---|---|
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 NOINST= file_rw_test | 6 NOINST= file_rw_test |
6 LIBS= ../libuwrap/libuwrap.a | 7 LIBS= ../libuwrap/libuwrap.a |
7 | 8 |
8 INST_FILES= baudtab-gsm baudtab-std | 9 INST_FILES= baudtab-gsm baudtab-std |
9 | 10 |
17 PATCH_FILE_OBJS= apply_eeprom_patch.o intel_hex_in.o intel_hex_out.o \ | 18 PATCH_FILE_OBJS= apply_eeprom_patch.o intel_hex_in.o intel_hex_out.o \ |
18 patch_ee_file.o | 19 patch_ee_file.o |
19 READ_BAUDTAB_OBJS= decode_baudtab.o read_baudtab.o read_eeprom.o | 20 READ_BAUDTAB_OBJS= decode_baudtab.o read_baudtab.o read_eeprom.o |
20 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o | 21 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o |
21 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o | 22 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o |
23 WRITE_EEPROM_OBJS= intel_hex_in.o write_eeprom.o write_eeprom_main.o | |
22 | 24 |
23 all: ${PROGS} ${NOINST} | 25 all: ${PROGS} ${NOINST} |
24 | 26 |
25 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS} | 27 cp2102-decode-baudtab: ${DECODE_BAUDTAB_OBJS} |
26 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS} | 28 ${CC} ${CFLAGS} -o $@ ${DECODE_BAUDTAB_OBJS} |
38 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb | 40 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb |
39 | 41 |
40 cp2102-read-partno: read_partno.o ${LIBS} | 42 cp2102-read-partno: read_partno.o ${LIBS} |
41 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb | 43 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb |
42 | 44 |
45 cp2102-write-eeprom: ${WRITE_EEPROM_OBJS} ${LIBS} | |
46 ${CC} ${CFLAGS} -o $@ ${WRITE_EEPROM_OBJS} ${LIBS} -lusb | |
47 | |
43 file_rw_test: ${RW_TEST_OBJS} | 48 file_rw_test: ${RW_TEST_OBJS} |
44 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS} | 49 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS} |
45 | 50 |
46 install: | 51 install: |
47 mkdir -p ${INSTBIN} | 52 mkdir -p ${INSTBIN} |