Makefile.am 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. ## Process this with automake to create Makefile.in
  2. AUTOMAKE_OPTIONS = foreign subdir-objects
  3. ACLOCAL_AMFLAGS = -I .. -I ../config
  4. SUBDIRS = include testsuite man
  5. EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj \
  6. ChangeLog.libffi ChangeLog.libffi-3.1 \
  7. m4/libtool.m4 m4/lt~obsolete.m4 \
  8. m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
  9. m4/ltversion.m4 src/debug.c msvcc.sh \
  10. generate-darwin-source-and-headers.py \
  11. libffi.xcodeproj/project.pbxproj \
  12. libtool-ldflags
  13. # Automake Documentation:
  14. # If your package has Texinfo files in many directories, you can use the
  15. # variable TEXINFO_TEX to tell Automake where to find the canonical
  16. # `texinfo.tex' for your package. The value of this variable should be
  17. # the relative path from the current `Makefile.am' to `texinfo.tex'.
  18. TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
  19. # Defines info, dvi, pdf and html targets
  20. MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
  21. info_TEXINFOS = doc/libffi.texi
  22. # AM_CONDITIONAL on configure option --generated-files-in-srcdir
  23. if GENINSRC
  24. STAMP_GENINSRC = stamp-geninsrc
  25. else
  26. STAMP_GENINSRC =
  27. endif
  28. # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
  29. if BUILD_INFO
  30. STAMP_BUILD_INFO = stamp-build-info
  31. else
  32. STAMP_BUILD_INFO =
  33. endif
  34. all-local: $(STAMP_GENINSRC)
  35. stamp-geninsrc: doc/libffi.info
  36. cp -p $(top_builddir)/doc/libffi.info $(srcdir)/doc/libffi.info
  37. @touch $@
  38. doc/libffi.info: $(STAMP_BUILD_INFO)
  39. stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp)
  40. $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi
  41. @touch $@
  42. CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) doc/libffi.info
  43. MAINTAINERCLEANFILES = $(srcdir)/doc/libffi.info
  44. ## ################################################################
  45. ##
  46. ## This section is for make and multilib madness.
  47. ##
  48. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  49. # values defined in terms of make variables, as is the case for CC and
  50. # friends when we are called from the top level Makefile.
  51. AM_MAKEFLAGS = \
  52. "AR_FLAGS=$(AR_FLAGS)" \
  53. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  54. "CFLAGS=$(CFLAGS)" \
  55. "CXXFLAGS=$(CXXFLAGS)" \
  56. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  57. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  58. "INSTALL=$(INSTALL)" \
  59. "INSTALL_DATA=$(INSTALL_DATA)" \
  60. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  61. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  62. "JC1FLAGS=$(JC1FLAGS)" \
  63. "LDFLAGS=$(LDFLAGS)" \
  64. "LIBCFLAGS=$(LIBCFLAGS)" \
  65. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  66. "MAKE=$(MAKE)" \
  67. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  68. "PICFLAG=$(PICFLAG)" \
  69. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  70. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  71. "SHELL=$(SHELL)" \
  72. "exec_prefix=$(exec_prefix)" \
  73. "infodir=$(infodir)" \
  74. "libdir=$(libdir)" \
  75. "mandir=$(mandir)" \
  76. "prefix=$(prefix)" \
  77. "AR=$(AR)" \
  78. "AS=$(AS)" \
  79. "CC=$(CC)" \
  80. "CXX=$(CXX)" \
  81. "LD=$(LD)" \
  82. "NM=$(NM)" \
  83. "RANLIB=$(RANLIB)" \
  84. "DESTDIR=$(DESTDIR)"
  85. # Subdir rules rely on $(FLAGS_TO_PASS)
  86. FLAGS_TO_PASS = $(AM_MAKEFLAGS)
  87. MAKEOVERRIDES=
  88. pkgconfigdir = $(libdir)/pkgconfig
  89. pkgconfig_DATA = libffi.pc
  90. toolexeclib_LTLIBRARIES = libffi.la
  91. noinst_LTLIBRARIES = libffi_convenience.la
  92. libffi_la_SOURCES = src/prep_cif.c src/types.c \
  93. src/raw_api.c src/java_raw_api.c src/closures.c
  94. if FFI_DEBUG
  95. libffi_la_SOURCES += src/debug.c
  96. endif
  97. noinst_HEADERS = \
  98. src/aarch64/ffitarget.h src/aarch64/internal.h \
  99. src/alpha/ffitarget.h src/alpha/internal.h \
  100. src/arc/ffitarget.h \
  101. src/arm/ffitarget.h src/arm/internal.h \
  102. src/avr32/ffitarget.h \
  103. src/bfin/ffitarget.h \
  104. src/cris/ffitarget.h \
  105. src/frv/ffitarget.h \
  106. src/ia64/ffitarget.h src/ia64/ia64_flags.h \
  107. src/m32r/ffitarget.h \
  108. src/m68k/ffitarget.h \
  109. src/m88k/ffitarget.h \
  110. src/metag/ffitarget.h \
  111. src/microblaze/ffitarget.h \
  112. src/mips/ffitarget.h \
  113. src/moxie/ffitarget.h \
  114. src/nios2/ffitarget.h \
  115. src/or1k/ffitarget.h \
  116. src/pa/ffitarget.h \
  117. src/powerpc/ffitarget.h src/powerpc/asm.h src/powerpc/ffi_powerpc.h \
  118. src/s390/ffitarget.h \
  119. src/sh/ffitarget.h \
  120. src/sh64/ffitarget.h \
  121. src/sparc/ffitarget.h src/sparc/internal.h \
  122. src/tile/ffitarget.h \
  123. src/vax/ffitarget.h \
  124. src/x86/ffitarget.h src/x86/internal.h src/x86/internal64.h \
  125. src/xtensa/ffitarget.h \
  126. src/dlmalloc.c
  127. EXTRA_libffi_la_SOURCES = \
  128. src/aarch64/ffi.c src/aarch64/sysv.S \
  129. src/alpha/ffi.c src/alpha/osf.S \
  130. src/arc/ffi.c src/arc/arcompact.S \
  131. src/arm/ffi.c src/arm/sysv.S \
  132. src/avr32/ffi.c src/avr32/sysv.S \
  133. src/bfin/ffi.c src/bfin/sysv.S \
  134. src/cris/ffi.c src/cris/sysv.S \
  135. src/frv/ffi.c src/frv/eabi.S \
  136. src/ia64/ffi.c src/ia64/unix.S \
  137. src/m32r/ffi.c src/m32r/sysv.S \
  138. src/m68k/ffi.c src/m68k/sysv.S \
  139. src/m88k/ffi.c src/m88k/obsd.S \
  140. src/metag/ffi.c src/metag/sysv.S \
  141. src/microblaze/ffi.c src/microblaze/sysv.S \
  142. src/mips/ffi.c src/mips/o32.S src/mips/n32.S \
  143. src/moxie/ffi.c src/moxie/eabi.S \
  144. src/nios2/ffi.c src/nios2/sysv.S \
  145. src/or1k/ffi.c src/or1k/sysv.S \
  146. src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
  147. src/powerpc/ffi.c src/powerpc/ffi_sysv.c src/powerpc/ffi_linux64.c \
  148. src/powerpc/sysv.S src/powerpc/linux64.S \
  149. src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \
  150. src/powerpc/aix.S src/powerpc/darwin.S src/powerpc/aix_closure.S \
  151. src/powerpc/darwin_closure.S src/powerpc/ffi_darwin.c \
  152. src/s390/ffi.c src/s390/sysv.S \
  153. src/sh/ffi.c src/sh/sysv.S \
  154. src/sh64/ffi.c src/sh64/sysv.S \
  155. src/sparc/ffi.c src/sparc/ffi64.c src/sparc/v8.S src/sparc/v9.S \
  156. src/tile/ffi.c src/tile/tile.S \
  157. src/vax/ffi.c src/vax/elfbsd.S \
  158. src/x86/ffi.c src/x86/sysv.S \
  159. src/x86/ffiw64.c src/x86/win64.S \
  160. src/x86/ffi64.c src/x86/unix64.S \
  161. src/x86/darwin64.S src/x86/darwin.S \
  162. src/x86/darwin64_c.c src/x86/darwin_c.c \
  163. src/xtensa/ffi.c src/xtensa/sysv.S
  164. TARGET_OBJ = @TARGET_OBJ@
  165. libffi_la_LIBADD = $(TARGET_OBJ)
  166. libffi_la_DEPENDENCIES = $(TARGET_OBJ)
  167. libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
  168. EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
  169. libffi_convenience_la_LIBADD = $(libffi_la_LIBADD)
  170. libffi_convenience_la_DEPENDENCIES = $(libffi_la_DEPENDENCIES)
  171. nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
  172. LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
  173. AM_CFLAGS = -Wall -g -fexceptions
  174. if FFI_DEBUG
  175. # Build debug. Define FFI_DEBUG on the commandline so that, when building with
  176. # MSVC, it can link against the debug CRT.
  177. AM_CFLAGS += -DFFI_DEBUG
  178. endif
  179. libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
  180. AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
  181. AM_CCASFLAGS = $(AM_CPPFLAGS)
  182. # Multilib support. Automake should provide these on its own.
  183. all-recursive: all-multi
  184. install-recursive: install-multi
  185. mostlyclean-recursive: mostlyclean-multi
  186. clean-recursive: clean-multi
  187. distclean-recursive: distclean-multi
  188. maintainer-clean-recursive: maintainer-clean-multi