comparison cp2102/Makefile @ 55:c0084bf153e5

cp2102: Intel HEX reading implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 19:45:56 +0000
parents d4d3531d342a
children 4890ded06a8b
comparison
equal deleted inserted replaced
54:10789bcf07c4 55:c0084bf153e5
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= cp2102-read-eeprom cp2102-read-partno 3 PROGS= cp2102-read-eeprom cp2102-read-partno
4 NOINST= file_rw_test
4 LIBS= ../libuwrap/libuwrap.a 5 LIBS= ../libuwrap/libuwrap.a
5 6
6 INSTALL_PREFIX= /opt/freecalypso 7 INSTALL_PREFIX= /opt/freecalypso
7 8
8 INSTBIN=${INSTALL_PREFIX}/bin 9 INSTBIN=${INSTALL_PREFIX}/bin
9 10
10 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o 11 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o
11 12
12 all: ${PROGS} 13 RW_TEST_OBJS= intel_hex_in.o intel_hex_out.o file_rw_test.o
14
15 all: ${PROGS} ${NOINST}
13 16
14 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS} 17 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
15 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb 18 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
16 19
17 cp2102-read-partno: read_partno.o ${LIBS} 20 cp2102-read-partno: read_partno.o ${LIBS}
18 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb 21 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb
19 22
23 file_rw_test: ${RW_TEST_OBJS}
24 ${CC} ${CFLAGS} -o $@ ${RW_TEST_OBJS}
25
20 install: 26 install:
21 mkdir -p ${INSTBIN} 27 mkdir -p ${INSTBIN}
22 install -c ${PROGS} ${INSTBIN} 28 install -c ${PROGS} ${INSTBIN}
23 29
24 clean: 30 clean:
25 rm -f ${PROGS} *.o *errs *.out 31 rm -f ${PROGS} ${NOINST} *.o *errs *.out