view serial/Makefile @ 38:1d96f3b4f155

serial: started with fcsim-serial-atr
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Mar 2021 19:19:46 +0000
parents
children 8f505d413815
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fcsim-serial-atr

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

ATR_OBJS=	atrmain.o collect_atr.o invtable.o serport.o

all:	${PROGS}

fcsim-serial-atr:	${ATR_OBJS}
	${CC} ${CFLAGS} -o $@ ${ATR_OBJS}

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

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