Makefile.am 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. if PLATFORM_WIN32
  2. SUPPORT=
  3. else
  4. SUPPORT=libMonoSupportW.la
  5. endif
  6. lib_LTLIBRARIES = \
  7. libMonoPosixHelper.la \
  8. $(SUPPORT)
  9. INCLUDES = \
  10. $(GLIB_CFLAGS) \
  11. -I$(top_srcdir)
  12. # Source code which helps implement the ANSI C standards, and thus *should* be
  13. # portable to any platform having a C compiler.
  14. MPH_C_SOURCE = \
  15. errno.c \
  16. map.c \
  17. map.h \
  18. mph.h \
  19. signal.c \
  20. stdio.c \
  21. string.c \
  22. stdlib.c
  23. # Source code which helps implement POSIX and other related Unix standards,
  24. # and *may* be portable between Unix platforms.
  25. MPH_UNIX_SOURCE = \
  26. dirent.c \
  27. fcntl.c \
  28. fstab.c \
  29. grp.c \
  30. macros.c \
  31. old-map.c \
  32. old-map.h \
  33. pwd.c \
  34. serial.c \
  35. sys-mman.c \
  36. sys-sendfile.c \
  37. sys-stat.c \
  38. sys-statvfs.c \
  39. sys-time.c \
  40. sys-utsname.c \
  41. sys-wait.c \
  42. sys-xattr.c \
  43. syslog.c \
  44. time.c \
  45. unistd.c \
  46. utime.c \
  47. x-struct-str.c
  48. if PLATFORM_WIN32
  49. MPH_SOURCE = $(MPH_C_SOURCE)
  50. MPH_LIBS =
  51. else
  52. MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
  53. MPH_LIBS = $(GLIB_LIBS)
  54. endif
  55. ZLIB_SOURCES = \
  56. adler32.c \
  57. compress.c \
  58. crc32.c \
  59. gzio.c \
  60. uncompr.c \
  61. deflate.c \
  62. trees.c \
  63. zutil.c \
  64. inflate.c \
  65. infback.c \
  66. inftrees.c \
  67. inffast.c \
  68. crc32.h \
  69. deflate.h \
  70. inffast.h \
  71. inffixed.h \
  72. inflate.h \
  73. inftrees.h \
  74. trees.h \
  75. zconf.h \
  76. zlib.h \
  77. zutil.h
  78. if HAVE_ZLIB
  79. Z_SOURCE = zlib_macros.c
  80. Z_LIBS= -lz
  81. else
  82. Z_SOURCE = zlib_macros.c $(ZLIB_SOURCES)
  83. Z_LIBS=
  84. endif
  85. libMonoPosixHelper_la_SOURCES = \
  86. $(MPH_SOURCE) \
  87. $(Z_SOURCE)
  88. libMonoPosixHelper_la_LIBADD = \
  89. $(MPH_LIBS) \
  90. $(Z_LIBS) \
  91. $(XATTR_LIB)
  92. # libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
  93. libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version
  94. libMonoSupportW_la_LDFLAGS = -no-undefined -avoid-version
  95. libMonoSupportW_la_SOURCES = \
  96. supportw.c \
  97. support-heap.c \
  98. supportw.h
  99. libMonoSupportW_la_LIBADD = \
  100. $(GLIB_LIBS)
  101. #
  102. # Use this target to refresh the values in map.[ch]
  103. #
  104. refresh:
  105. cp `pkg-config --variable=Programs create-native-map` . && \
  106. $(top_builddir)/runtime/mono-wrapper create-native-map.exe \
  107. --autoconf-member=d_off \
  108. --autoconf-member=d_reclen \
  109. --autoconf-member=d_type \
  110. --exclude-native-symbol=Mono_Posix_Stdlib_snprintf \
  111. --impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE \
  112. --impl-header="<sys/types.h>" \
  113. --impl-header="<sys/stat.h>" \
  114. --impl-header="<sys/time.h>" \
  115. --autoconf-header="<sys/poll.h>" \
  116. --autoconf-header="<sys/wait.h>" \
  117. --autoconf-header="<sys/statvfs.h>" \
  118. --autoconf-header="<sys/xattr.h>" \
  119. --autoconf-header="<sys/mman.h>" \
  120. --impl-header="<unistd.h>" \
  121. --impl-header="<fcntl.h>" \
  122. --impl-header="<signal.h>" \
  123. --autoconf-header="<poll.h>" \
  124. --autoconf-header="<grp.h>" \
  125. --impl-header="<errno.h>" \
  126. --autoconf-header="<syslog.h>" \
  127. --impl-header="<dirent.h>" \
  128. --impl-header="<utime.h>" \
  129. --impl-header="\"mph.h\"" \
  130. --rename-member=st_atime=st_atime_ \
  131. --rename-member=st_ctime=st_ctime_ \
  132. --rename-member=st_mtime=st_mtime_ \
  133. --rename-namespace=Mono.Unix.Native=Mono.Posix \
  134. --library=MonoPosixHelper \
  135. $(mcs_topdir)/class/lib/net_2_0/Mono.Posix.dll map