Instead of building the test suites inherited from BoringSSL as seperate executables, link them all together into one executable, giving all their `main` functions unique names. This allows all the tests to be run, even on platforms that don't have traditional process spawning, and avoids the need to keep track of directory names even on platforms that do support process spawning. This also makes it easier to integrate new BoringSSL test suites on Windows, because we don't need to create a new `vcxproj` file for each one. Having one test executable may also make code coverage easier.
30 lines
958 B
Makefile
30 lines
958 B
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) \
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
$(RING_LIBS) \
|
|
$(NULL)
|
|
|
|
include mk/bottom_of_makefile.mk
|