view ffstools/tiffs-wrappers/Makefile @ 869:7be2220d52c5

ringtools/examples: add compile.sh like in e1-experiments
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Mar 2022 06:03:34 +0000
parents 8e7f6cca385b
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	mokoffs pirffs tiffs-8m

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

MOKOFFS_OBJS=	installpath.o mokoffs.o
PIRFFS_OBJS=	installpath.o pirffs.o
TIFFS8M_OBJS=	installpath.o tiffs-8m.o

all:	${PROGS}

mokoffs:	${MOKOFFS_OBJS}
	${CC} ${CFLAGS} -o $@ ${MOKOFFS_OBJS}

pirffs:		${PIRFFS_OBJS}
	${CC} ${CFLAGS} -o $@ ${PIRFFS_OBJS}

tiffs-8m:	${TIFFS8M_OBJS}
	${CC} ${CFLAGS} -o $@ ${TIFFS8M_OBJS}

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

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