ring/Makefile
Brian Smith 2ef3ccd9c8 Don't add ring's tests to |make check| in mk/ring.mk.
A program integrating ring may not necessarily want ring's tests to run
as part of |make check|. Instead, define a rule |check-ring| that can
a Makefile can use as a dependency to run the ring tests, and do that
in ring's Makefile.
2015-08-26 21:18:27 -07:00

36 lines
1.0 KiB
Makefile

# Copyright 2015 Brian Smith.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND BRIAN SMITH AND THE AUTHORS DISCLAIM
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL BRIAN SMITH OR THE AUTHORS
# BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
include mk/top_of_makefile.mk
RING_PREFIX =
include mk/ring.mk
OBJS += \
$(RING_OBJS) \
$(RING_TEST_LIB_OBJS) \
$(RING_TEST_MAIN_OBJS) \
$(NULL)
LIBS += \
$(RING_LIB) \
$(NULL)
EXES += $(RING_TEST_EXES)
check:: check-ring
include mk/bottom_of_makefile.mk