Makefile.arch 775 B

12345678910111213141516
  1. # Makefile for uClibc-ng NPTL
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. ASFLAGS-dl-tlsdesc.S = -DNOT_IN_libc=1
  4. libc_arch_a_SSRC = libc-dl-tlsdesc.S
  5. CFLAGS-gen_tlsdesc.c = -S
  6. $(libpthread_arch_OUT)/gen_tlsdesc.c: $(libpthread_arch_DIR)/tlsdesc.sym | $(libpthread_arch_OUT)
  7. $(do_awk) $(top_srcdir)extra/scripts/gen-as-const.awk $< > $@
  8. $(libpthread_arch_OUT)/gen_tlsdesc.s: $(libpthread_arch_OUT)/gen_tlsdesc.c | headers
  9. $(compile.c)
  10. libpthread-generated-y += $(libpthread_arch_OUT)/gen_tlsdesc.s
  11. $(libpthread_arch_OUT)/tlsdesc.h: $(libpthread_arch_OUT)/gen_tlsdesc.s
  12. $(do_sed) $(PTHREAD_GENERATE_MANGLE) $< > $@
  13. @if test ! -s $@ ; then rm -f $@ ; false ; fi
  14. pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(libpthread_arch_OUT)/tlsdesc.h