diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-10 17:02:39 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-10 17:11:48 +0100 |
commit | d0234b16d61f06b2a3fd6241eff8c81250283a60 (patch) | |
tree | 926d22fcfd470f2cf1db01ed6900e61dadb6bd52 /libc/sysdeps/linux/x86_64 | |
parent | 1558b6e7b2d117620c1698e231204049ab52c493 (diff) |
buildsys: use kbuild style
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/x86_64')
-rw-r--r-- | libc/sysdeps/linux/x86_64/Makefile.arch | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/libc/sysdeps/linux/x86_64/Makefile.arch b/libc/sysdeps/linux/x86_64/Makefile.arch index 93b825911..2bc838f0e 100644 --- a/libc/sysdeps/linux/x86_64/Makefile.arch +++ b/libc/sysdeps/linux/x86_64/Makefile.arch @@ -5,23 +5,15 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -CSRC := brk.c __syscall_error.c sigaction.c +CSRC-y := brk.c __syscall_error.c sigaction.c -SSRC := \ +SSRC-y := \ __longjmp.S setjmp.S syscall.S bsd-setjmp.S bsd-_setjmp.S -ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y) -SSRC += vfork.S clone.S -endif - +SSRC-$(if $(UCLIBC_HAS_THREADS_NATIVE),,y) += vfork.S clone.S +ARCH_OBJ_FILTEROUT-$(UCLIBC_LINUX_SPECIFIC) := sched_getcpu.c ifeq ($(UCLIBC_LINUX_SPECIFIC),y) -ARCH_OBJ_FILTEROUT = sched_getcpu.c -ifeq ($(UCLIBC_HAS_TLS),y) -SSRC += sched_getcpu.S -endif -endif - -ifeq ($(UCLIBC_HAS_CONTEXT_FUNCS),y) -CSRC += makecontext.c -SSRC += setcontext.S getcontext.S swapcontext.S __start_context.S +SSRC-$(UCLIBC_HAS_TLS) += sched_getcpu.S endif +CSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.c +SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += setcontext.S getcontext.S swapcontext.S __start_context.S |