view rvinterf/etmsync/Makefile @ 48:2bbd9a389ca0

ringtools/Makefile: move to /opt/freecalypso/bin
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 06:01:50 +0000
parents 24cb10d508d7
children 642da3373772
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I../include
PROGS=	fc-dspapidump fc-fsio fc-olddump
INSTBIN=/usr/local/bin
INSTHELP=/usr/local/share/freecalypso

DSPDUMP_OBJS=	connect.o dspapidump.o interf.o launchrvif.o memops.o \
		simplemain.o

FSIO_OBJS=	cl_des.o connect.o dispatch.o fdcmd.o fileio.o fsbasics.o \
		fscmdtab.o fserr.o fsiomain.o fsmisc.o fspath.o fsread.o \
		fsupload.o fswrite.o help.o interf.o launchrvif.o memcmd.o \
		memops.o pirimei.o pirmagnetite.o rfcap.o stddirs.o symlink.o

OLDDUMP_OBJS=	connect.o interf.o launchrvif.o memops.o olddump.o simplemain.o

all:	${PROGS}

fc-dspapidump:	${DSPDUMP_OBJS}
	${CC} ${CFLAGS} -o $@ ${DSPDUMP_OBJS}

fc-fsio:	${FSIO_OBJS}
	${CC} ${CFLAGS} -o $@ ${FSIO_OBJS}

fc-olddump:	${OLDDUMP_OBJS}
	${CC} ${CFLAGS} -o $@ ${OLDDUMP_OBJS}

install:	${PROGS}
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}
	mkdir -p ${INSTHELP}
	install -c -m 644 fsio.help ${INSTHELP}

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