view duart28/Makefile @ 30:8de3891460db

duart28/eeprom_rd.c: fix analyze_eeprom() return value
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Sep 2023 19:39:15 +0000
parents a7393d00996a
children 530ec3792de8
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	fc-duart28-conf
OBJS=	eeprom_rd.o find_usb.o main.o
LIBS=	../libftmini/libftmini.a ../libuwrap/libuwrap.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROG}

${PROG}:	${OBJS} ${LIBS}
	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} -lusb

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

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