From e26a93806edd0ed0af960c012b7c163f5fe41850 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 13 Feb 2022 08:54:34 +0000 Subject: [PATCH] build: allow check_libucontext program to be run on its own like the other check steps --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fd3757f..1fb87fd 100644 --- a/Makefile +++ b/Makefile @@ -229,9 +229,11 @@ test_libucontext_bare_posixabi: test_libucontext_posix.c ${LIBUCONTEXT_NAME} $(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} test_libucontext_posix.c -o $@ -L. -lucontext endif -check: test_libucontext ${LIBUCONTEXT_SONAME} +check_libucontext: test_libucontext ${LIBUCONTEXT_SONAME} env LD_LIBRARY_PATH=$(shell pwd) ./test_libucontext +check: check_libucontext + test_libucontext: test_libucontext.c ${LIBUCONTEXT_NAME} $(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} $@.c -o $@ -L. -lucontext