From 4975ba90519f5d38fd206476cc358ff3a7d83eb3 Mon Sep 17 00:00:00 2001 From: Jim Hauxwell Date: Mon, 19 Jun 2023 22:47:26 +0100 Subject: [PATCH] fix file copy --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 72d641a..de13a8e 100644 --- a/Makefile +++ b/Makefile @@ -88,8 +88,12 @@ LIBUCONTEXT_PC = libucontext.pc LIBUCONTEXT_PATH = ${shared_libdir}/${LIBUCONTEXT_SONAME} LIBUCONTEXT_STATIC_PATH = ${static_libdir}/${LIBUCONTEXT_STATIC_NAME} LIBUCONTEXT_HEADERS = \ - include/libucontext/libucontext.h \ - include/libucontext/bits.h + include/libucontext/libucontext.h +ifeq ($(FREESTANDING),yes) +LIBUCONTEXT_HEADERS += arch/${ARCH}/include/libucontext/bits.h +else +LIBUCONTEXT_HEADERS += arch/common/include/libucontext/bits.h +endif LIBUCONTEXT_EXAMPLES = \ examples/cooperative_threading LIBUCONTEXT_POSIX_STATIC_NAME = libucontext_posix.a