view target-utils/Makefile @ 1015:9ced8e13cf91

fc-shell tch-dl command implementation: brown paper bag
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 20 Mar 2016 23:07:46 +0000
parents 5cff3579814c
children
line wrap: on
line source

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

default:	${FOR_LOADTOOLS}
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 ${FOR_LOADTOOLS}; 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: