view 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
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	cp2102-read-eeprom cp2102-read-partno
LIBS=	../libuwrap/libuwrap.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

READ_EEPROM_OBJS=	intel_hex_out.o read_eeprom.o read_eeprom_main.o

all:	${PROGS}

cp2102-read-eeprom:	${READ_EEPROM_OBJS} ${LIBS}
	${CC} ${CFLAGS} -o $@ ${READ_EEPROM_OBJS} ${LIBS} -lusb

cp2102-read-partno:	read_partno.o ${LIBS}
	${CC} ${CFLAGS} -o $@ read_partno.o ${LIBS} -lusb

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f ${PROGS} *.o *errs *.out