view ffstools/tiaud/Makefile @ 473:90d7c360a614

main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 05:06:15 +0000
parents 1f3b28d66d53
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	compile decomp mkvol

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROGS}

compile:	compile.c
	${CC} ${CFLAGS} -o $@ $@.c

decomp:	decomp.c
	${CC} ${CFLAGS} -o $@ $@.c

mkvol:	mkvol.c
	${CC} ${CFLAGS} -o $@ $@.c

install:	${PROGS}
	mkdir -p ${INSTBIN}
	install -c compile ${INSTBIN}/tiaud-compile
	install -c decomp ${INSTBIN}/tiaud-decomp
	install -c mkvol ${INSTBIN}/tiaud-mkvol

clean:
	rm -f ${PROGS}