Makefile.gnulib.inc.in 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright (C) 2020-2022 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. # A makefile snippet that lists all of the libraries that should be
  15. # pulled in when linking against gnulib. Both GDB and GDBSERVER will
  16. # include this snippet.
  17. #
  18. # The defined variables are:
  19. #
  20. # LIBGNU: The path to the archive containing gnulib. Can be used as a
  21. # dependency as when this file changes gdb/gdbserver should be
  22. # relinked.
  23. #
  24. # LIBGNU_EXTRA_LIBS: A list of linker -l.... flags that should be
  25. # included in the link line of gdb/gdbserver. These are
  26. # libraries that $(LIBGNU) depends on. This list is taken from
  27. # the output of gnulib-tool, which is run by our
  28. # gnulib/update-gnulib.sh script.
  29. #
  30. # INCGNU: A list of -I.... include paths that should be passed to the
  31. # compiler, these are where the gnulib headers can be found.
  32. # Packages must define the relative path to gnulib's parent dir.
  33. ifndef GNULIB_PARENT_DIR
  34. $(error missing GNULIB_PARENT_DIR)
  35. endif
  36. LIBGNU = $(GNULIB_PARENT_DIR)/gnulib/import/libgnu.a
  37. LIBGNU_EXTRA_LIBS = @FREXPL_LIBM@ @FREXP_LIBM@ @INET_NTOP_LIB@ \
  38. @LIBTHREAD@ @LIB_GETLOGIN@ @LIB_GETRANDOM@ \
  39. @LIB_HARD_LOCALE@ @LIB_MBRTOWC@ \
  40. @LIB_SETLOCALE_NULL@ @LIBINTL@ @LIB_SELECT@ @LIBSOCKET@
  41. INCGNU = -I$(srcdir)/$(GNULIB_PARENT_DIR)/gnulib/import \
  42. -I$(GNULIB_PARENT_DIR)/gnulib/import