Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #
  2. # Copyright (c) 2017 - 2018 Cadence Design Systems Inc.
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining
  5. # a copy of this software and associated documentation files (the
  6. # "Software"), to deal in the Software without restriction, including
  7. # without limitation the rights to use, copy, modify, merge, publish,
  8. # distribute, sublicense, and/or sell copies of the Software, and to
  9. # permit persons to whom the Software is furnished to do so, subject to
  10. # the following conditions:
  11. #
  12. # The above copyright notice and this permission notice shall be included
  13. # in all copies or substantial portions of the Software.
  14. #
  15. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. #
  23. AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir) -I$(srcdir)/../xrp-common \
  24. -I$(srcdir)/thread-@THREADS_IMPL@
  25. AM_CFLAGS = -W -Wall $(THREADS_CFLAGS)
  26. include_HEADERS = ../xrp_api.h
  27. lib_LIBRARIES =
  28. if BUILD_STANDALONE
  29. lib_LIBRARIES += libxrp-host-standalone.a
  30. endif
  31. if BUILD_HOSTED
  32. lib_LIBRARIES += libxrp-host-hosted.a
  33. endif
  34. if BUILD_SINGLE
  35. lib_LIBRARIES += libxrp-host-single.a
  36. endif
  37. if USE_THREADS
  38. queue_sources = xrp_threaded_queue.c
  39. else
  40. queue_sources = xrp_sync_queue.c
  41. endif
  42. libxrp_host_standalone_a_CPPFLAGS = $(AM_CPPFLAGS) \
  43. $(LIBFDT_CPPFLAGS) \
  44. -I$(srcdir)/standalone \
  45. -I$(srcdir)/../xrp-kernel
  46. libxrp_host_standalone_a_SOURCES = xrp_host_common.c \
  47. $(queue_sources) \
  48. standalone/xrp_host.c \
  49. standalone/xrp_@HOST_OS@.c \
  50. ../xrp-kernel/xrp_alloc.c
  51. libxrp_host_hosted_a_CPPFLAGS = $(AM_CPPFLAGS) \
  52. -I$(srcdir)/hosted \
  53. -I$(srcdir)/../xrp-kernel
  54. libxrp_host_hosted_a_SOURCES = xrp_host_common.c \
  55. $(queue_sources) \
  56. hosted/xrp_@HOST_OS@.c
  57. libxrp_host_single_a_CPPFLAGS = $(AM_CPPFLAGS) \
  58. -I$(srcdir)/single
  59. libxrp_host_single_a_SOURCES = xrp_host_common.c \
  60. $(queue_sources) \
  61. single/xrp_single.c \
  62. ../xrp-common/xrp_ns.c