comparison cp2102/Makefile @ 53:d4d3531d342a

cp2102-read-eeprom program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 18:49:07 +0000
parents a5c4a82d01ab
children c0084bf153e5
comparison
equal deleted inserted replaced
52:61cdcf2eb17b 53:d4d3531d342a
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= cp2102-read-partno 3 PROGS= cp2102-read-eeprom cp2102-read-partno
4 LIBS= ../libuwrap/libuwrap.a 4 LIBS= ../libuwrap/libuwrap.a
5 5
6 INSTALL_PREFIX= /opt/freecalypso 6 INSTALL_PREFIX= /opt/freecalypso
7 7
8 INSTBIN=${INSTALL_PREFIX}/bin 8 INSTBIN=${INSTALL_PREFIX}/bin
9 9
10 READ_EEPROM_OBJS= intel_hex_out.o read_eeprom.o read_eeprom_main.o
11
10 all: ${PROGS} 12 all: ${PROGS}
13
14 cp2102-read-eeprom: ${READ_EEPROM_OBJS} ${LIBS}
15 ${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb
11 16
12 cp2102-read-partno: read_partno.o ${LIBS} 17 cp2102-read-partno: read_partno.o ${LIBS}
13 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb 18 ${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb
14 19
15 install: 20 install: