1
0
Files
irix-657m-src/stand/arcs/ide/IP28/Makefile
2022-09-29 17:59:04 +03:00

48 lines
1.0 KiB
Makefile

#
# Makefile for the IDE libraries.
#
# This makefile normally builds two libraries, libide.a for IDE standalone
# programs and libpide.a for PROM use.
#
# Users can say either "make default" or "make prom" to make the
# desired version.
#
DIAGDEPTH=..
include ../Makedefs
# XXX need R10000 cache tests.
SUBDIRS= pon IP28 diag
PSUBDIRS= pon
LTARGETS= ${LIBNAME}
TARGETS= ${LTARGETS}
default: ip28core
COMMONPREF=$(CPUBOARD)
include ../Makerules
ip28core: $(TDIRS) ${_FORCE}
@for d in ${SUBDIRS}; do \
echo "======\tcd $$d; ${MAKE} _lib"; \
cd $$d; ${MAKE} _lib; cd ..; \
done
prom: ${TDIRS} ${_FORCE}
@for d in ${PSUBDIRS}; do \
echo "======\tcd $$d; ${MAKE} LIBTYPE=p PROMFLAGS=-DPROM _plib"; \
cd $$d; ${MAKE} LIBTYPE=p PROMFLAGS=-DPROM _plib ; cd ..; \
done
# Common rules which we implement at this level
# and also pass on to sub-makes
$(COMMONTARGS):
@for i in ${SUBDIRS}; do \
echo "======\tcd $$i; ${MAKE} $@"; \
cd $$i; ${MAKE} $@; cd ..; \
done
@if [ "$@" = "clobber" ]; then \
rm -rf $(TARGETDIR) ;\
fi