Makefile 746 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=..
include $(PRDEPTH)/PRdefs

LIBDEPTH=.
include $(LIBDEPTH)/libdefs

SUBDIRS=monegi nintendo shared

COMMONPREF = libultra

.NOTPARALLEL:

default! $(_FORCE)
	$(SUBDIRS_MAKERULE)

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

install exports! $(_FORCE)
	$(SUBDIRS_MAKERULE)
	for i in $(TARGETS) ; do \
		$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
	done

include $(PRDEPTH)/PRrules