GNUmakefile 864 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 bb 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_libs: $(_FORCE)
	for i in $(TARGETS) ; do \
		$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
	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