Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scno.am 989B

12345678910111213141516171819202122232425
  1. # scno.h make rules for strace.
  2. #
  3. # Copyright (c) 2017-2019 Dmitry V. Levin <ldv@altlinux.org>
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. SCNO_CPPFLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  8. $(ARCH_MFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS)
  9. syscallent.i: $(top_builddir)/config.h $(top_srcdir)/$(OS)/$(ARCH)/syscallent.h
  10. $(CPP) -P $(SCNO_CPPFLAGS) -include $^ -o $@
  11. digits = [[:digit:]][[:digit:]]*
  12. al_nums = [[:alnum:]_][[:alnum:]_]*
  13. SCNO_SED = /TRACE_INDIRECT_SUBCALL/d; s/^\[[[:space:]]*\($(digits)\([[:space:]]*+[[:space:]]*$(digits)\)\?\)\][[:space:]]*=[[:space:]]*{[^,]*,[^,]*,[^,]*,[[:space:]]*"\($(al_nums)\)"[[:space:]]*},.*/\#ifndef __NR_\3\n\# define __NR_\3 (SYSCALL_BIT | (\1))\n\#endif/p
  14. scno.h: $(top_srcdir)/scno.head syscallent.i
  15. echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
  16. cat $< >> $@-t
  17. LC_ALL=C sed -n '$(SCNO_SED)' $(filter-out $<,$^) >> $@-t
  18. mv $@-t $@
  19. BUILT_SOURCES += scno.h
  20. CLEANFILES += syscallent.i scno.h