view target-utils/Makefile @ 43:647a7bdba4be

target-utils/Makefile: install c139explore and pirexplore
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 05:40:33 +0000
parents e7502631a0f9
children 5bbba2cab6f3
line wrap: on
line source

INSTPROGS=	compalstage c139explore loadagent pirexplore
ALLPROGS=	${INSTPROGS} c139-lldbg helloapp tf-breakin
LIBS=		libbase libcommon libload libprintf libtiffs
SUBDIR=		${ALLPROGS} ${LIBS}

default:	${INSTPROGS}
all:		${ALLPROGS}

c139explore:	libbase libcommon libprintf
c139-lldbg:	libbase libcommon libprintf
helloapp:	libbase libcommon libprintf
loadagent:	libbase libcommon libload libprintf
pirexplore:	libbase libcommon libprintf libtiffs

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS}

install: FRC
	for i in ${INSTPROGS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done

clean: FRC
	rm -f a.out core errs
	for i in ${SUBDIR}; do \
		if [ -d $$i ]; then \
			(cd $$i; ${MAKE} ${MFLAGS} clean) \
		fi \
	done

FRC: