librules
738 Bytes
#
# The default rule for each of the subdirectory builds.
#
# For each archive, cd into the object file directory and then reach back
# into the source directory to get its Makefile. The .PATH target in librules
# allows us to get the source when we are building in the object directory.
#
default exports! $(_FORCE)
@for i in $(TARGETS) ; do \
cd $(LIBDEPTH)/$$i ; \
$(MAKE) -f $(LIBDEPTH)/Makefile $$i ;\
done
#
# This allows us to build "libultraXXX.a" with a target of "libultraXXX"
# without an annoying "libultraXXX.a is up to date" message. There is
# probably a better way to do this.
#
.a.out:
@echo -n
#
# Archive inference rule.
#
$(ARCHIVES): $(.TARGET)($(OBJECTS))
ar cru $(.TARGET) $(.OODATE)
rm -f $(.OODATE)