Makefile 969 Bytes
#!smake
#
# Makefile for libultra directory
#
# For each of the TARGETS specified in libdefs, create the corresponding
# archive in the subdirectory of the same name.  Each subdirectory will
# contain a 'locdefs' file which tailors the build for each library.
#

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

LIBDEPTH=..
include $(LIBDEPTH)/libdefs

SUBDIRS=leo iplleo writerleo
HEADERS_SUBDIRS=include

COMMONPREF = org

.NOTPARALLEL:

install exports default! $(_FORCE)
	@for d in $(SUBDIRS); do \
	    if test ! -d $$d; then \
		if test "$(NOSUBMESG)" = "" ; then \
			echo "SKIPPING $$d: No such directory."; \
		fi \
	    else \
		(cd $$d; for m in Makefile*; do \
			echo "\t(cd $$d; $(MAKE) -f $$m $${RULE:=$@})"; \
			${MAKE} -f $$m $${RULE:=$@}; \
		done); \
	    fi ; \
	done

headers:$(_FORCE)
	$(HEADERS_SUBDIRS_MAKERULE)

clean clobber! $(_FORCE)
	for i in $(SUBDIRS) ; do \
		rm -fr $$i/$$i.a $$i/$(MKDEPFILE) $$i/*.o; \
	done

include $(PRDEPTH)/PRrules