view sw/mcsi-rxtx/Makefile @ 8:ee14dd81bba1

sw/Makefile: add mcsi-rxtx
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Oct 2024 01:45:32 +0000
parents 8a386263dd51
children e93a11f44e6f
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	fc-mcsi-rxtx
OBJS=	main.o mainloop.o rx_samples.o ttymagic.o usercmd.o
LIBS=	../libserial/libserial.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROG}

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

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

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